Learn More, Pay Less!
Limited Time Offer!
Open Closed

Remember me option and auth cookie expire time #8715


User avatar
0
LiSong created
  • ABP Framework version: v9.X.X
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  1. Currently when a user checks/uncheckes the "Remember Me" option during login, does it make any differences? I tested it, it seems both remember the logged in status
  2. how long the auth cookie expire time by default? I want to ensure users are logged out after 8 hours, how can I do that? Thanks!

1 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    • If you can set remember me the cookies will be valid for 14 days by default.

    if set rememebr me cookie Expire date will show.

    without set remember me session will be invalid after close the browser

    For more information you can check this similar issue https://abp.io/support/questions/5231/Reducing-the-Remember-Me-time?CurrentPage=1#answer-3a0bd55f-37b2-1f28-914f-7b52bbf16f87

    • please check this for auth cookie expire time https://github.com/abpframework/abp/blob/1863a619f172634b2eb4842f0c241c40a9642c91/docs/en/Modules/OpenIddict.md?plain=1#L425

    you can add time as per your requirement.

    Thank you.

Made with ❤️ on ABP v9.2.0-preview. Updated on February 13, 2025, 10:35