Results 1 to 4 of 4

Thread: IE keeping variables / cookies ?

  1. #1
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,168
    Thanks
    735
    Thanked
    1,607 times in 1,045 posts

    IE keeping variables / cookies ?

    Ive tied a small CMS ive made into PHPbb for a clan website im doing. Ive ironed out almost every problem but this one.

    On the main page, i have a "Welcome back <username>". If your logged into the forum, it says your username, if not, you get 2 links to register or log in.
    If i logout of the forum, it still says "Welcome back <username>", even when i refresh the page. If i close the page, and reopen it in a new IE window, it correctly identifys that the user isnt logged in.
    I have tried telling it not to cache the page, but that doesnt work. Even a force refresh (ctrl + F5) produces the same result.

    What makes it more annoying is it works flawlessly in Opera and other browsers, just not in IE, which is leading me to think that its keeping a variable somhow and dislaying it. The only thing i can think that it is is the cookie : When a user is loged out of the forum, the cookie is supposed to die, but as another IE window is open, it waits for it to close and then kills the cookie.

    If thats the case, any ideas how to overcome it ?, force IE to kill a cookie even if other windows using it are open ?

    Thanks
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  2. #2
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    How much control do you get over the cookie?

    I guess it stores the login name and password, with an expiry period of a year or something?

    The way I set up my site (ASP-based, but I assume the same principle) was to have the "logout" button overwrite the cookie with a null string for the username and password as well as set the expiry date to 1999.

    That way it would at least fail the login if the cookie wasn't deleted for some reason.

    Worth a try - should work for session cookies too I think?
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

  3. #3
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,168
    Thanks
    735
    Thanked
    1,607 times in 1,045 posts
    I was thinking somthing along the same lines
    I didnt idealy want to go down that route because it means editing the PHPbb files and would need to be altered on every update.
    Not loads of effort i suppose, but it should work in theroy (or somthing is seriously wrong)

    Thanks for the input
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  4. #4
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    Well, if it helps any, the reason I did it like that was entirely because of the reason you said

    Although I was testing with MyIE2 (still uses the IE rendering engine though) - I was getting really confused as to why I clicked "logout" and it SAID I was logged out, but then auto-refreshed and said "you are logged in as xxxx" as normal.

    Really weird.
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •