SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: session ID

  1. #1
    SitePoint Wizard bronze trophy bigalreturns's Avatar
    Join Date
    Mar 2006
    Location
    The Wirral, England
    Posts
    1,294
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    session ID

    How do I access the session ID from PHP? The manual says it should be stored as the constant SID, but also something about only if cookie method doesnt work? If cookie method does work, how can I still access SID?
    Thanks,
    Alex
    "The proper function of man is to live - not to exist."
    Get a Free TomTom


  2. #2
    SitePoint Evangelist sysice's Avatar
    Join Date
    Oct 2004
    Location
    Hackettstown, NJ
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to access it with the session_id() function.

    http://www.php.net/manual/en/function.session-id.php


Bookmarks

Posting Permissions

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