Organizational Research By

Surprising Reserch Topic

Question:how to validate Url with session ?


 

'm trying to get my script to use url session id instead of cookies. The following page is not picking up the variable in the url as the session id. I must be missing something.
 
ini_set("session.use_cookies",0);
ini_set("session.use_trans_sid",1);
session_start();
$session_id = session_id();
header("location: target.php?session_id=". $session_id );
 
 
ini_set("session.use_cookies",0);
ini_set("session.use_trans_sid",1);
print_r($_SESSION);
print(session_id())
 
Result is a different session id and the session is blank.
 
Array ( [debug] => no ) pt1t38347bs6jc9ruv2ecpv7o2
asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes
21 views



Related Hot Questions



Government Jobs Opening


...