Organizational Research By

Surprising Reserch Topic

boostr.in 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";
  session_start();
}

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
8 views



Related Hot Questions



Government Jobs Opening


...