When I click the logout button in Beta 7 R51, the page refreshes, but I don't get logged out. I don't get logged out until I clear the cookies.
Browsers: Firefox 1.5.01, IE 6.0.2900
OS: Windows XP SP2
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| B7 R51 Logout not working |
| |||
| ||||
| |||
| Logout Problem, Possible Fix
I think I tracked the problem down to the SetIDCookie() function in login.php. The user's logged in cookie is set with a different path than the unset. Setting the cookie: setcookie("mnm_user", $this->user_login, $time, "/"); // line 58 Unsetting the cookie: setcookie ("mnm_user", "", time()-3600); // Expiramos el cookie line 44 I added the path specification to lines 44 & 45 setcookie ("mnm_user", "", time()-3600, "/"); // Expiramos el cookie setcookie ("mnm_key", "", time()-3600, "/"); // Expiramos el cookie The logout is now working. Note: Based on a quick glance at the setcookie API the first version of the code should have worked. |
| ||||
|
Thanks for posting the bug and fixing it!
__________________ - Ash |
| |||
|
Umm... Thanks, but my login.php does not have that function in it; my guess is that it is in a different file? and gets included somehow? Kerwin. www.cruisinaltitude.com/news |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] LogOut Error Fixed | vAx | Bug Report | 14 | 09-17-2008 10:12 AM |
| Version 9.7 - URLMethod 2 not working for some links | tglk | General Help | 1 | 01-04-2008 12:10 AM |
| Logout on profile page | grimusm | General Help | 2 | 12-04-2007 04:40 PM |
| Outbound links not working | slick | General Help | 0 | 03-17-2007 02:23 AM |
| Top users sorting not working correctly. | Nikes77 | General Help | 0 | 12-07-2006 06:46 AM |






Linear Mode

