Identifying the new Session ID

T

thomson

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


thanks in Advance


thomson
 
S

S. Justin Gengo

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
 
J

John Timney \(ASP.NET MVP\)

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
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top