Jump to content

Session id problem in php Windows XP


wrwom

Recommended Posts

I am new to working with php and am trying to set up a local server install for development. I am having a problem with sessions, the session id is being reset every time a page is called. I have spent a lot of time trying to find a solution to this, but none of the suggestions I have found solve the problem.

The script I am using for test purposes, which simply echos back the session id works when uploaded to a unix based server on line, so I know that the script is working.

The installation I am using is WAMP5, although I have also tried installing from xampp and reactor server with the same results.

I have tried various settings for sessions.save_path and session.cookie_path. I have confirmed that a cookie is being written to the directory in session.cookie_path when a new page is called.

Other relevant settings are:

session.use_cookies = 1
session.use_only_cookies = tried both 0 and 1
session.use_trans_sid = 0

I have run out of ideas as to what might be causing this problem. Any suggestions of other things to try to get this working would be appreciated. I know I could work around this by passing the session id in links, but I would rather not have to do that since the server that the app will be uploaded to handles sessions fine and this would be a more streamlined way to do it, and I would rather not have to change code between my local and production apps.

Thanks for any help!


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.