Organizational Research By

Surprising Reserch Topic questions - Question:PHP session_start doesn't resume session

I want to resume a session. So I'm passing session id and trying to resume session like so:

if(!empty($_POST['session_id'])) {
  session_id($_POST['session_id']);  // $_POST['session_id'] = "4dkwkeiugraqhfpeq745l2c2a1";

I see that physical session file exists 'sess_4dkwkeiugraqhfpeq745l2c2a1' in the session folder where I store my sessions. Three is data there. However, the session does not resume. After calling session_start(), $_SESSION variables are not there.

What am I misssing here?

asked Sep 13, 2013 in PHP by anonymous
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.