gandolfTheRed Posted January 27, 2013 Share Posted January 27, 2013 I’m moving a longstanding working site from on server to another. In the move my session handling is acting differently on the new server. My first clue was that my PHPSESSION files in the new 777 folder I built is saving a new session file each link / click. For a bit… I set session.use_trans_sid = 1 in my php5.php but… I don’t want the session id in the address bar, and B.) it didn’t actually work for forwards (REFRESH to another page.(worked fine when clicking a link) and C) my url rewrites are not working…. So step1 compare the old phpinfo file to the new one and make sure everything matches. Easy enough for most commands but…. And this is where I make this post to ask… How do I set…???? PHP Variables _REQUEST["PHPSESSID"] 1913085bab063a403cd0737472ea36a7 _COOKIE["PHPSESSID"] 1913085bab063a403cd0737472ea36a7 And do I need to? There are existing _request and cookie listing in my phpinfo view... but the new one doesn't show _REQUEST["PHPSESSID"] yet on the existing/old site it is listed. Is this something I need to turn on? do I use the php5 file to do it? Help! Please. P.S. I'm looking forward to being a php freak!!! Quote Link to comment Share on other sites More sharing options...
Christian F. Posted January 27, 2013 Share Posted January 27, 2013 First step is to check the error logs, or turn on error reporting (to browser). Next step is to check every piece of data and configuration related to the session handling, and note all of the differences between the old and new servers. Somewhere in this process the reason for you troubles should emerge. The $_REQUEST array is just a collection of the data from $_GET, $_POST and $_COOKIE. It is recommended to use the specific source, instead of relying upon the $_REQUEST array. Seeing as you can never be too sure where the data in the collection variable came from, and as such the user (or you) could easily overwrite some data by mistake. 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.