View Full Version : Getting the Session ID...

06-18-2002, 05:38 PM
I have a site that I have users and passwords assigned - I want to be able to have a user listing with users online/offline etc. Something that would accurately tell me who is logged on and when...

Would this be done with a database?

I looked at this site and it looks as if at the start of every "session" it tracks the session ID...

How can I get the Session ID from the web server using ASP..?

Is it:
theID = Session.SessionID

Would that be the right code?

Thanks for your help - if this post seems a little unclear, I'm sorry.. I don't know if I even understand it

P.S. - I'm not asking for the code - just tips on the best way to do this... (Using a combo of ASP and cookies???)


06-18-2002, 06:23 PM

A little reference material, I hope helps out.

06-18-2002, 06:42 PM
Yeah, that page has a lot of info on it.



06-19-2002, 01:07 AM
Actually, you can find an example of this, who's online right now (I believe on w3schools.com even!) if you look at the global.asa file and APPLICATION (not session) variables.


06-19-2002, 10:12 PM
thanks whammy, the example (I think) is what I want...

hopefully it'll work out for me :)