Session_id not automatically saved in PHP 5.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    Session_id not automatically saved in PHP 5.2

    Hi.

    I've been using php 5.1.x for a while now and have a whole bunch of php code wirtten that works fine using that.
    I just updated to 5.2 and now none of the sessions I use work.

    I've found that the session.save_pa th has to be set for windows systems. I did that and the session data is written there. But still, the php code always looks for data in some temp folder way inside my temp internet files.
    I manually set the save_path before calling session_start() and that seemes to point it in the ritght direction. But still, now the session_id is changed everytime I hit a link or reload the page.

    So basicly the session data is saved but the session_id is lost every time I reload.

    Anybody know a way to fix this?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    I fix it btw...

    PHP 5.2's default setting is to not use cookies, wich means the session_id is never saved on the client wich means it keeps making new once..

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      I am glad you found the problem!

      If you don't mind I will alter the title of your thread slightly, so other members can see more easily the topic and may benefit from your experience.

      Ronald :cool:

      Comment

      Working...