You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is fine. Though you need to decide where to do that. Many websites have some sort of cron job system that's running in the background for these sorts of cleanup tasks. You could add it to that, or if you wanted to simplify things you could add the delete where you look up the token, this makes looking up tokens slower, but the cleanup then becomes simplified.
Issue opened for the creation of a wiki page that summarizes the doubts and problems for newbies (#210).
I'm trying to use the following model for the "remember me" module.
I'm wondering what to do with tokens in the table DB that are older than the maximum token expiration period.
A simple
DELETE ... WHERE created_at > 30 days
?Do you think there is a mistake doing this, @aarondl?
The text was updated successfully, but these errors were encountered: