The code below is all code at http://dot.kr/Q/php/session/regenerate/true.php
[code]<?php
session_id(‘hello1’);
session_start();
$old_sessionid = session_id();
session_regenerate_id (true);
$new_sessionid = session_id();
echo “Old Session: $old_sessionid
”;
echo “New Session: $new_sessionid
”;
?>[/code]
And the code below is all code at http://dot.kr/Q/php/session/regenerate/false.php.
[code]<?php
session_id(‘hello1’);
session_start();
$old_sessionid = session_id();
session_regenerate_id (false);
$new_sessionid = session_id();
echo “Old Session: $old_sessionid
”;
echo “New Session: $new_sessionid
”;
?>[/code]There is no defference between true.php and false.php but truee and false in the code.
true in true.php and false in false.php is the only difference between them.
Although there is the difference in using truee or false , The result in the page at http://dot.kr/Q/php/session/regenerate/true.php and the result in the page at http://dot.kr/Q/php/session/regenerate/false.php are same.
Then, I doubt what is the difference in using true or false.
What is the difference between them?
How can I see the difference in the result page between them?