You are here: Re: login problem « All PHP « IT news, forums, messages
Re: login problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация