Page 1 of 1

session_id regenerating doesnt work in IE!!!!

Posted: Tue Jul 07, 2009 11:10 am
by mazza279
I am having trouble with IE. I have a script that replaces the current session id with a new one. This work in FireFox but not IE.

Any ideas how to force IE (All browsers) to regenerate a new session id?

Below is a script that shows the old and new session id. if you run it in Firefoxe and refresh the page they will change. In IE the old session_id remains the same.

Please can someone help with this? I'm starting to hate IE!!!!!


<?php
session_start();
session_id();
$old_sessionid = session_id();
session_regenerate_id();
$new_sessionid = session_id();
echo "Old Session: $old_sessionid<br />";
echo "New Session: $new_sessionid<br />";
?>