[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= mysql_result($result,0,'name');
session_register(memberid); $memberid= mysql_result($result,0,'id');
?

I try to make the logout page like that:

?php

session_start();
session_unset();
session_destroy();
?

but it dont work.
I have
a.. PHP - 4.0.5
a.. MySQL - 3.23.32
a.. Apache - 1.3.14
a.. PHPMyAdmin - 2.1.0
a.. Perl - nsPerl 5.005_03

session.auto_start Off
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path c:/php4/sessions
session.serialize_handler php
session.use_cookies On

installed apache on win2000

The session is not destroyd. Session_unset dont work to.
Can someone help me?
thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 make Refresh of page, there is no error !!

Can someone any ideas ?

Thanks
Rosen





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]