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 4 of 4
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Transient handling not working

    I'm using very simple session control - all I do is this:
    Code:
    //start session
    session_start();
    
    //set transient SID argument separator to "&" for XML 
    ini_set("arg_separator.output","&");
    But when cookies are not available the session doesn't propagate.

    If you have a look at http://www.brothercake.com/games/mastermind-test/ in a browser with cookies disabled - the orange text is $_SESSION and the blue text is $_POST. The PHPSESSID does get written to that form, and when you submit it the ID is there in the POST data, but if you submit it again, the ID has changed - it creates a new session and so all the data is lost.

    Any ideas what might be going wrong here?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hm. I can't reproduce your issue with PHP 4.3.6 on Win2k.

    Have you made sure you don't actually overwrite the session id somewhere, or change the name of the session accidentally somewhere? What is the value of your php.ini setting "session.use_only_cookies"? Apart from that, I think you have to show us more code of your session handling.
    De gustibus non est disputandum.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    session.use_only_cookies was On - that was it, and now it works ta
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're welcome.
    De gustibus non est disputandum.


  •  

    Posting Permissions

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