Session ID


https://forum.kartris.com/Topic449.aspx
Print Topic | Close Window

By saturation - Thu 17 Mar 2011
I'm trying to lookup the current session in tblKartrisSessions, but the session ID that I am writing out to the page (just for testing purposes) is not the same as the SESS_Code for the same IP address.  Am I doing this wrong or do I need to run a stored procedure or something else to convert the ID from Session.SessionID to get SESS_CODE?
By Mohammad - Fri 18 Mar 2011
The session code used in Sessions' table is not the same as "Session.SessionID", we are generating the session code using formula or randomly depending on some factors.

If you want to referene a record in the table, try Session("SessionCode") or Session("SessionID").

Also, Session("SessionID") <> ASP.Net auto generated Session.SessionID.