cancel
Showing results for 
Search instead for 
Did you mean: 

It seems expired cookies are not deleting properly, Log in to another account uses old cookies.

Highlighted
New Contributor

It seems expired cookies are not deleting properly, Log in to another account uses old cookies.

I am working on a php app and spent hours scouring through code because when I log off the site it should set the cookies to expire an hour ago. Then when you log in it should create new cookies of course. So when I logged off one account and into another it was pulling up cookies that should have expired and changing account information for another account because of this. Tried to recreate the same problem in chrome doesn't happen only in fire fox. Any ideas?

2 REPLIES
Legendary Contributor

Re: It seems expired cookies are not deleting properly, Log in to another account uses old cookies.

Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache. Note: This will temporarily log you out of all sites you're logged in to. To clear cache and cookies do the following:


  1. Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
  2. Under "Time range to clear", select "Everything".
  3. Now, click the arrow next to Details to toggle the Details list active.
  4. From the details list, check Cache and Cookies and uncheck everything else.
  5. Now click the Clear now button.

Further information can be found in the Clear your cache, history and other personal information in Firefox article.

Did this fix your problems? Please report back to us!

Site Moderator

Re: It seems expired cookies are not deleting properly, Log in to another account uses old cookies.

If clearing cookies doesn't work then it is possible that the cookies.sqlite file that stores the cookies is corrupted.

Rename (or delete) cookies.sqlite (cookies.sqlite.old) and delete other present cookie files like cookies.sqlite-journal in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.

You can use this button to go to the Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder