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? Quote Link to comment 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();?> Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.