codexx Posted July 23, 2007 Share Posted July 23, 2007 Good Evening Everyone! We developed some code on PHP 4. We had to transfer to a new server with PHP 5 lately and im having some session issues. Sessions work great in our main www directory. If you go to for example restricted.php (http://www.ourdomain.com/restricted.php) it recognized the session variable "online". If you go to anything below the main www ie. ourdomain.com/users/restricted.php it does not recognize the session variable. Is there an easy solution or should I post code? Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/ Share on other sites More sharing options...
cooldude832 Posted July 23, 2007 Share Posted July 23, 2007 you are starting sessions on all pages? must be pre any output <?php session_start();?> Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/#findComment-305114 Share on other sites More sharing options...
codexx Posted July 23, 2007 Author Share Posted July 23, 2007 Yes every page in all directories start with session_start();. It worked fine in PHP 4. Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/#findComment-305120 Share on other sites More sharing options...
xenophobia Posted July 23, 2007 Share Posted July 23, 2007 Probably is your session path problems. Try check on the php configuration files. Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/#findComment-305128 Share on other sites More sharing options...
codexx Posted July 23, 2007 Author Share Posted July 23, 2007 what specifically am I looking for in the config files? This is a cpanel server and I don't have root access.. Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/#findComment-305129 Share on other sites More sharing options...
codexx Posted July 23, 2007 Author Share Posted July 23, 2007 I checked all the .htacess files and reset them. They were a little off from the old host. Still nothing though Link to comment https://forums.phpfreaks.com/topic/61316-session-problems/#findComment-305157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.