session_destroy() don't work too well with IE (Internet Explorer) due to
bunch of bugs that IE have.  That is if you are using IE to test this....

"Kostas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

Reply via email to