I am trying to get my script to use the url session id instead of cookies. The following page does not display the variable in the URL as a session identifier. Something is missing for me.
First page http://www.website.com/start.php
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 );
Next page - http://www.website.com/target.php?session_id=rj3ids98dhpa0mcf3jc89mq1t0
ini_set("session.use_cookies",0); ini_set("session.use_trans_sid",1); print_r($_SESSION); print(session_id())
The result is a different session identifier, and the session is empty.
Array ([debug] => no) pt1t38347bs6jc9ruv2ecpv7o2
source share