Jump to content

Session not working in folders


codexx

Recommended Posts

Hey Everyone.

 

We just moved a script to a clients server.

 

We developed in PHP 4 and everything worked fine. The clients server is PHP 5.

 

Sessions work perfect when its in the main public_html directory.

 

When a user goes to a folder ie oursite.com/folder/ the session is no longer there.

 

Is there any changes in the versions that would cause a session to no longer be valid when you enter a folder?

 

Ex.

User logins on login.php and can view index.php and additional pages requiring authetication.

User clicks on myAccount and is taken to oursite.com/users and gets redirected to login.php because the session is no longer available.

 

The script worked fine before the move.

Link to comment
Share on other sites

We do, it all worked fine before. It was the change to the new servers version that has made it a little weird.

 

Is there anywhere I can go to see the changes to the session in PHP 5?

 

Is there anything in php.ini that could cause it to fail?

 

The base of the URL is the same ie (http://www.oursite.com) the only factor changing is the /folder so I don't see why it isn't recognizing the session data.

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.