Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

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

Government Jobs Opening