Relating Session Key to Session ID

T

Tim Russell

When a user visits our site we want to store the Session ID
(Session.SessionID) and then later parse through the web log files to find
any log entries that correspond to that Session ID. The problem is that the
Session ID returned by Session.SessionID is different from the entry
"ASPSESSIONIDxxxx=xxxxxxxxxxx" that is found in the log file. In addition
to the Session ID should we also just capture the
Request.ServerVariables("HTTP_COOKIE") entry, which would give me the
ASPSESSIONIDxxxxx=xxxxxxxxxxxxxx? I didn't know if there was a better way
to make the match between SessionID and the ASPSESSIONID session key.
Thanks.

Tim
 
A

Adrian Forbes - MVP

Those things are deliberately encoded to stop people
spoofing connections. What you could do is store the
session ID in your own cookie (daft, I know) and that
cookie will appear with each request in the logs in a
plain format.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top