Can't clear cookies?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kier
    Former Lead Developer, vBulletin
    • Sep 2000
    • 8179

    Can't clear cookies?

    It often happens when setting up a new board, or changing some settings, that your members find themselves unable to log out.

    The most common cause for this is that the cookie has been set for a site that has greater 'scope' then the current cookie.

    For example, let's say that Arthur goes to http://yoursite.com/forums and logs in. The cookie's domain is now set to 'yoursite.com'.

    Later on, Arthur goes to http://www.yoursite.com/forums and logs in again. There is now a cookie with a cookie domain of 'www.yoursite.com'.

    Now Arthur tries to log out. vBulletin dutifully clears out the cookie for www.yoursite.com, but Arthur finds that he is still logged in, even though he just got a message telling him that all cookies were cleared!

    This happens because there is still a cookie for yoursite.com (without the www subdomain) and that cookie is overriding the one for www.yoursite.com. Normally this could be quite tricky to solve, but IE6 offers a neat way to clear out the old cookie without clearing all your cookies (which is very annoying when you have to do it).

    To clear out the offending cookie, click on the Tools > Internet Options menu in IE and click on the 'Privacy' tab. Once in there, click on the 'Edit' button for web site cookie handling (at the bottom of the panel) and add 'yoursite.com' to the list of blocked sites. Okay out of the menu and log in and out of the yoursite.com forums to refresh stuff, and hopefully you will find yourself properly logged out.

    Finally, don't forget to go back into the IE options and remove yoursite.com from the list of blocked sites!
  • iblis
    Member
    • Dec 2000
    • 70

    #2
    I've had this problem for quite some time now..
    Upon reading this article i changed all urls (respectivly in forumhome_logoutcode and my portal) to <a href="http://myforum.com/forum/member.php?s=$session[sessionhash]&action=logout"> instead of the standard <a href="member.php?s=$session[sessionhash]&action=logout"> ..
    and it works like a charm
    thx alot for the tip

    Comment

    • mark@sb.ws
      Senior Member
      • Apr 2002
      • 145

      #3
      Originally posted by iblis
      I've had this problem for quite some time now..
      Upon reading this article i changed all urls (respectivly in forumhome_logoutcode and my portal) to <a href="http://myforum.com/forum/member.php?s=$session[sessionhash]&action=logout"> instead of the standard <a href="member.php?s=$session[sessionhash]&action=logout"> ..
      and it works like a charm
      thx alot for the tip

      What do you mean.....and my portal. I understand the logout code one but is there another to change to?

      Comment

      • tgillespie
        Senior Member
        • Dec 2002
        • 2325
        • 3.7.x

        #4
        He has changed the LOGOUT buttons links to include his domain, therefor executing only one cookie that does not have the www. sub. Like this
        Code:
         [i]<a href="http://myforum.com/forum/member.php?s=$session[sessionhash]&action=logout"> [/i]
        Trent Gillespie Mod Theater Gillespie Photography

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...