Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: regenerate sess id
02-16-2013, 10:23 AM #1
regenerate sess id
Just curious if i have this process correct to avoid session id fixation
in my login file once the auth is done and everything is fine.
then i set the session values and also set this
$_SESSION['oldid'] = 1;
and at the very top of that home page i have this so that it only executes this one time per login.
//only do this one time per login
echo "hellow old is set";
$_SESSION['oldid'] = '';
Last edited by durangod; 02-16-2013 at 10:32 AM. Reason: moved session start
02-16-2013, 06:06 PM #2
Just an update, i did give up on this idea. No matter what i did or where i tried to do this i got some kind of warning or notice. I thought using this would be a good idea but i guess maybe one day i will learn where to use it..