[PHP] Problem with session_destroy() don't work

2003-10-12 Thread Kostas
Hi, I have a problem with destroing a session. I have made a login page and the login work ok. I register the things i want like that: ? session_register(uid); $uid= mysql_result($result,0,'userid'); session_register(pwd); $pwd= mysql_result($result,0,'password'); session_register(name); $name=

[PHP] Problem with session_destroy

2001-09-11 Thread Rosen
I have the code: ?include(con.php); session_start(); require_once(func1.php); if (lExistUser($cusr, $cpass)==false) { if (session_id() ) {session_destroy();} } When the page loads the first time I receive error: Warning: Session object destruction failed in main.php on line 9 but when I