Jump to content


session not openining after link

php requests sessions setup

  • Please log in to reply
1 reply to this topic

#1 gandolfTheRed

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 January 2013 - 09:07 AM

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


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!!!

#2 Christian F.

Christian F.
  • Staff Alumni
  • Advanced Member
  • 3,106 posts
  • LocationNorway

Posted 27 January 2013 - 12:25 PM

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.
Keeping it simple.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users