very weird $_SESSION id problem

Hi everyone ,

We are having a real problem with our web application. When people fill out an application on our website , they are assigned a session ID which is created in the database , this user ID will remain set throughout the application process . However recently we started noticing a problem , somehow the user ID is being change or defaulting to 1, even though it was correcting set to the appropriate sequence nu
I’m using this statement to print the session array to a txt file … $data .= print_r($_SESSION, true)
below you can see how the user id changes automatically from 8700 to 1. I would greatly appreciate any ideas how to troubleshoot this issue.

Regards.
Luis

Step 1


[requested_url] => /application.php
[userID] => 8700
[firstName] => Matthew
[lastName] => Orr
)

Step 2

Array
(
[requested_url] => /application.php
[userID] => 1
[firstName] => Matthew
[lastName] => Orr

We would be glad to look at your code and fix your problem.
But, please post some code.

At least the parts that show where you are creating, saving and using the $_SESSION[‘UserID’] and where it is accessed.

Sponsor our Newsletter | Privacy Policy | Terms of Service