ssr has asked for the wisdom of the Perl Monks concerning the following question:

The session id that is issued by IIS webserver to a client is only available only on the server side. How do I capture that session id that is issued by my IIS server to my clients? I understand that this is doable in ASP, coldfusion etc., But the trick for my is I need to figure out a way to capture this session id through a perl 5.005 script. Any help is GREATLY appreciated. Thanks, monks!

Replies are listed 'Best First'.
Re: Session ID issued by IIS Web Server
by inman (Curate) on Oct 06, 2003 at 13:21 UTC
    As far as I know, the IIS server itself does not provide any session management. Things like ASP and Coldfusion are applications in their own right and have session management built into them. They use IIS to provide the HTTP front end.

    You could try using CGI::Session with the other CGI modules to provide the session management. If you change to an Apache server then you could use Apache::Session

    Inman

Re: Session ID issued by IIS Web Server
by Aristotle (Chancellor) on Oct 06, 2003 at 10:50 UTC
    Is this a plain CGI script, or are you using the Perl IIS DLL? If the former, is there any reason not to use the latter? It should be (nearly) trivial in the latter case.

    Makeshifts last the longest.

      Thanks for your reply. I am using perl5.005 and IIS 6.0. Could you please point me in the right direction as to how to use it and any valuable resources., etc., Thanks very much!
        With ASP.net you can specify a state server - either a SQL server or it's own state service. So if you specify <sessionState mod="sqlserver" etc etc then you could poll the sql server w/ your perl script and get the state I would presume.