Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting the Session ID...

    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???)

    ~Quack

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Plano, Texas
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.w3schools.com/asp/asp_ref_session.asp

    A little reference material, I hope helps out.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, that page has a lot of info on it.

    Thanks!

    ~Quack

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks whammy, the example (I think) is what I want...

    hopefully it'll work out for me

    ~Quack


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •