Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2006, 11:02 PM
New Pligger
 
Join Date: Mar 2006
Location: MA
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to webfanatic
B7 R51 Logout not working

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
Reply With Quote
  #2 (permalink)  
Old 03-28-2006, 12:01 AM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
ditto here.

http://www.cruisinaltitude.com/news
Reply With Quote
  #3 (permalink)  
Old 03-28-2006, 12:28 PM
3dKiller's Avatar
Constant Pligger
 
Join Date: Mar 2006
Location: Newport Beach
Posts: 142
Thanks: 24
Thanked 2 Times in 1 Post
ditto here.

http://www.inboxnews.com
Reply With Quote
  #4 (permalink)  
Old 03-29-2006, 08:16 AM
New Pligger
 
Join Date: Mar 2006
Location: MA
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to webfanatic
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.
Reply With Quote
  #5 (permalink)  
Old 03-30-2006, 05:28 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Thanks for posting the bug and fixing it!
__________________
- Ash
Reply With Quote
  #6 (permalink)  
Old 03-30-2006, 10:24 PM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7 (permalink)  
Old 03-30-2006, 10:44 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Whoops, we need to be more specific.

/libs/login.php
__________________
- Ash
Reply With Quote
  #8 (permalink)  
Old 03-31-2006, 12:35 AM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Sweet!
Thanks, works now.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0