Jump to content

session not openining after link


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.