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

How do I obtain the session ID from a user logging on to our site? I understand it is stored somewhere in Windows. I need to figure out a way to retrieve it and pass it on to a different program. Please HELP!

Replies are listed 'Best First'.
Re: session ID
by NetWallah (Canon) on Oct 04, 2003 at 05:04 UTC
    I'm guessing your query is "How do I get the ASP session ID in an IIS (Windows) web server?".

    The answer is - In your script, obtain the value of
    Request->ServerVariables (HTTP_COOKIE)

    The Data will contain something like
    HTTP_COOKIE=MYCOOKIE=KEY1=AB&KEY2=AB; ASPSESSIONID=QWWNJOMYGIPZUYJN

    You then need to parse out the ASPSESSIONID part.

    Details at http://www.microsoft.com/windows2000/en/server/iis/htm/asp/vbob5vsj.htm