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
https://forums.phpfreaks.com/topic/61627-session-not-working-in-folders/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.