session_id regenerating doesnt work in IE!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mazza279
Forum Newbie
Posts: 1
Joined: Tue Jul 07, 2009 11:03 am

session_id regenerating doesnt work in IE!!!!

Post 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 />";
?>
Post Reply