Jump to content

$_SESSION problem


midmented

Recommended Posts

Our network Administrator applied an update to our web server recently. After this update was applied (Novell update), my phpMyEdit pages stopped responding. Everything else works fine. After doing some debugging, I found that if I placed all of my pages in the same directory, everything worked.

My $_SESSION vars will not transfer to other pages unless that page is in the same directory as the session was started in. I hope this is enough of an explaination.

 

I am clueless as to why thus far. I am going to look at the php.ini file today.

 

Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/45260-_session-problem/
Share on other sites

I looked at the php error.log and found this:

[02-Apr-2007 09:29:35] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(../_AdminAccess/include/session.php) is not within the allowed path(s): (.;sys:/tmp) in WEB:/ROOT/phpMyEdit/Admintblmysqlusers.php on line 2

 

I changed line 2 from:

        include ("../_AdminAccess/include/session.php");

to

session_start();

session_register("session");

 

and everything works fine. I would like to find out why access to that directory changed after the server updates though.

 

Thanks for your help!

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/45260-_session-problem/#findComment-219798
Share on other sites

I'll be dropping it. This is the first time I used it (because of the previous reply post).

I tried it only because of the suggestion on this post. I wasn't using it in my include file prior to this.

 

I am a Noobie to php as well! Any help is greatly appreciated.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/45260-_session-problem/#findComment-219843
Share on other sites

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.