I am passing a session id along the url. If a person actually changes the id to '1', or something else, the session variables will still be present (even though I check to see if they are registered). Is there a way to make sure the session_id is valid?
I am using
if($HTTP_GET_VARS["id"])
{
session_id($HTTP_GET_VARS["id"]);
}
session_start();
if($HTTP_GET_VARS["id"])
{
if(!session_is_registered("username") | !session_is_registered("password"))
{
show_error("An error occured in the process, please login again");
}
}
But, if I change the ID in the url, the variables are still registered somehow.
Any ideas?