Is it possible to set the same sesion_id everytime before session_start even after the session has expired? I want to have the same session id for a user each time he logins for some testing purpose. This is how i do it.
session_id($myid);
session_start();
if(isset($_SESSION['something']))
{
// do something
}
else
{
// set the same variables again depending on some condition
}