-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purge expired auth cookies #5001
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sproc: Using TOP should include an "Order By" statement.
Not for DELETE TOP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, seen a ton of delete examples that don't have an OrderBy
DNN Platform/Website/Providers/DataProviders/SqlDataProvider/09.11.00.SqlDataProvider
Outdated
Show resolved
Hide resolved
…9.11.00.SqlDataProvider Co-authored-by: Brian Dukes <bdukes@engagesoftware.com>
for large tables, it might be useful to add an unique index on "ExpiresOn, CookieID" column and use "ORDER BY ExpiresOn DESC" |
Nice one! :) |
Summary
Add a scheduled task to purge AuthCookies from the DB that have expired.
Fixes #4982