Web Analytics Made Easy -
StatCounter Getting the Session ID... - CodingForum

Announcement

Collapse
No announcement yet.

Getting the Session ID...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    A little reference material, I hope helps out.
    House Of Proctor Genealogy

    Comment


    • #3
      Yeah, that page has a lot of info on it.

      Thanks!

      ~Quack

      Comment


      • #4
        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. ;)

        Comment


        • #5
          thanks whammy, the example (I think) is what I want...

          hopefully it'll work out for me

          ~Quack

          Comment

          Working...
          X