Results 1 to 5 of 5

Thread: Session_id

  1. #1
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Thumbs down Session_id

    Hi guys,

    Iv got a unusual one, or at least one that iv not heard of or seen.

    When i test my email system where you register and an email gets sent to the email address you provide, on my works server, it picks up the SID and puts it in the URL, which is what i want. But when i put it onto the live environment which is hosting company, it cant pick up the session id.

    now i dont know if im doing it properly or not, but i must be to some extent.
    all im doing is:
    $0_SID = $PHPSESSID;
    im just using $PHPSESSID, but the other server just doesnt seem to use that.

    is there like a universal way of doing it?

    cheers
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Do you get an error or anything? Or just the page is blank.
    Jeremy | jfein.net

  3. #3
    Join Date
    Feb 2008
    Location
    Coventry
    Posts
    103
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default

    When i receive the email, all i get is http://www.mysite.com/index.php?SID=
    and obviously where it has the SID it should have the sessio_id of the user when they went to sign up. Also the knock on effect is that it doesnt go into the database.

    But solve one and il have solved the other.

    Any advice? anything else i could try?
    The important thing is not to stop questioning. Curiosity has its own reason for existing.

  4. #4
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    can you show your code?
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  5. #5
    Join Date
    May 2007
    Location
    By the beach
    Posts
    23
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Please use the session_id() module (php.net/session_id) to get the current session id. The host your working on most likely has register globals disabled and/or session.use_only_cookies set to 1. Meaning the PHP session id will not be passed as a GET request variable for enhanced security.

    More Information:
    http://php.net/session_id
    http://php.net/register_globals
    http://us3.php.net/manual/en/session...e-only-cookies


    Sample Code:
    $mySessionId = session_id();

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
  •