Menu

Can't logout?

Help
Anonymous
2001-09-05
2001-09-06
  • Anonymous

    Anonymous - 2001-09-05

    I'm using Netscape. (In case it matters) I can log in fine, but when I try to log out, it *seems* to work but when I click login (to login as admin for example) it is if I had never logged out!

    Any ideas?

     
    • Anonymous

      Anonymous - 2001-09-06

      Found the error!

      For users of php4 (I'm assuming that's the reason)

      you'll need to change line 770 and 771 of users.php from this...

              setcookie ("cookieusername", "", 0);
              setcookie ("cookiepassword", "", 0);

      tp this....

              setcookie ("cookieusername", "", time()-3600,"$hostname_path", "$hostnam
      e_domain");
              setcookie ("cookiepassword", "", time()-3600,"$hostname_path", "$hostnam
      e_domain");

      and chane all instances of setcookie from this...

      setcookie ("cookieusername", "", 0 ....

      to this...

      setcookie ("cookieusername", "", time()+3600

      Note! this also cause auto-expiry in one hour :-)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.