QUOTE (Hercco @ Aug 1 2005, 09:39 PM)
How do you transfer the session id? Do you use cookies, have cookies as optional or rely completely on GET variable?
And do you save the session id into database and check it from there?
Oh and your code would be helpful too. Just explain it or have it properly commented.
actually I dont pass the session id in to pages but rely on get... moreover... i use code as such
CODE
session_start();
$_SESSION['<somevariable>']='someting';
and use this variable to see if the person has logged in or not... as
CODE
session_start();
$_SESSION['logged']=true;
in some other pages
CODE
if (isset($_SESSION['logged'])&&$_SESSION['logged'])
{
//Some codes
}
else
{
// other codes
}
Is this all right or am I just making it feel stupid...
please tell me better way to handle sessions and with code if any
Thank you
QUOTE (Hercco @ Aug 1 2005, 09:39 PM)
How do you transfer the session id? Do you use cookies, have cookies as optional or rely completely on GET variable?
And do you save the session id into database and check it from there?
Oh and your code would be helpful too. Just explain it or have it properly commented.
HeLp me know about session id and its uses how to pass session id into pages... i have seen PHP self passing id through PHPSESSID in GET variable... how will I save the Session id??? and use it later on...
Comment/Reply (w/o sign-up)