|
Specifically sessions
I have a site that resides on 2 servers (site is a copy of itself) (one local and the other an ISP). the ISP runs php 4.3 or so and works fine so no problems really, yet my local server is now running php5 and has totaly messed my sessions up.
I have a login screeen that will assign your details into a session once you login so you can safely browse around the admin area (or wherever) without having to log in all the time. but under php5 i am always redirected to the login screen even though I have authenticated myself instead of been redirected to the page I came from.
I have several session vars floating about but the main one in this insatance is
$_SESSION['admin']['user'] which is setup on a successfull login. However under php5 it never gets read by any other page, moreso it fails to find anything stored under such a session var in other pages.
Yes my session_start is accessed by each page (built into my application to be that way), yes I have attempted to edit php.ini and change the session.save_path = "/var/lib/php/session" to simpler places like /tmp, I have also called methods like session_write_close() but its just having a laugh at me.
In short i think something has seriously changed for I cannot fathom why under php4 it works fine yet under 5 its fails. And theres me thinking it should be backward compatible and what have you.
Certainly scratching more hair away
Ibbo
|