|
|
Posted by white lightning on 01/31/08 22:36
On Jan 31, 11:32 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>
>
> Did you do as I said - put another value in the $_SESSION array duringloginwhich is NOT cleared when you log out?
>
well this is what i did in the logout() function in my User class..
function _logout() {
$query = "UPDATE member SET cookie='', session='',
ip='' WHERE
member_id='{$_SESSION['uid']}'";
mysql_query($query) or die("Could not select");
$_SESSION['logged'] = false;
//$_SESSION = array();
//session_destroy();
return true;
}
I commented out 2 lines that is supposed to keep the session array as
it is after logout but the result is same as before. Is that what you
are asking me to do? something like this, right?
> Also, did you enable the E_NOTICE errors display?
>
when i add "error_reporting(E_ALL);" or "error_reporting(E_NOTICE);"
in my code, I get the following error after I press the "login"
button.. but normal browsing is ok..
Error 405 Method Not Allowed
The requested method POST is not allowed for URL
Navigation:
[Reply to this message]
|