Jump to content

Forcing a cookie to close?


3raser

Recommended Posts

Hey there,

 

I currently have a banning system on my site that doesn't allow users to login with the banned account. But the cookies are set to remember them for a year. How can I destroy their cookie, so that they don't stay logged in and continue to use the site?

Link to comment
Share on other sites

Or you can change the code which checks for the "logged in" cookie so it also checks if the user is banned.

 

I hope your cookies are secure enough that someone can't login just by setting the cookie themselves.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.