True or false in session_regenerate_id ();

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?

straight from the Manual:

delete_old_session
Whether to delete the old associated session file or not.

you can’t, see above.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.