Identifying the new Session ID

  • Thread starter Thread starter thomson
  • Start date Start date
T

thomson

Hi all,
Is there any way to identify the next Session Id, that is
being generated.


thanks in Advance


thomson
 
Thomson,

Once the session is started you could immediately get the session id on the
first page the user enters using Session.SessionID.

If you need to get the session id sooner you could use the Session_Start
subroutine in the Global.asax file that fires as soon as the session is
created.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
If you mean the next available session ID then no, ASP.NET uses highly
random 120-bit numbers for its session IDs for security. If you could
predict the next session ID you leave your server open to session hijacking.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
No, AFAIK this is similar to a GUID that would be encoded with chars...
 

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

Back
Top