Out of the blue I've just had a problem occur with the sessions on some of the PHP systems I've created. The systems work fine on my test server (WinXP, Apache/MySQL/PHP) but when I upload them to the live Linux servers (different hosts for different projects) the following problem occurs...
When the user logs in an authentication page checks their details, and if they're valid sets the following variables:
$SESSION['s_id'] = $data['id'];
$SESSION['s_username'] = $data['username'];
$_SESSION['s_password'] = $data['password'];
This is just a small extract, and so previous to this the session variables are registered and the session is started. The session timeout is set and the session also started on the private pages as well so that the user's session login details can be retrieved.
The problem is that the session variables only contain the value of the last session variable set. In the example above, the other two session variables would have the value of the $_SESSION['s_password'] variable. As I say, this is a problem that has only just occurred and I can't figure what's up :-S
Any help greatly appreciated,
teknodude