Skip to content

Commit f0c0fd3

Browse files
Keep a panel sign-in for 12 hours instead of a year (#1111)
1 parent 8940883 commit f0c0fd3

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎src/Web/Grand.Web.Admin/App_Data/appsettings.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
8484
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
8585
"KeyPersistenceLocation": "",
86-
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
87-
"CookieAuthExpires": 8760,
86+
//Gets or sets a value indicating for cookie auth expires in hours. A staff sign-in ends 12 hours after it was made,
87+
//whether the panel is in use or not; the storefront keeps a long sign-in (8760 = 24 * 365)
88+
"CookieAuthExpires": 12,
8889
//Gets or sets a value for cookie prefix - any changes will log out all of the customers
8990
"CookiePrefix": ".Grand.",
9091
//Gets or sets a value for cookie claim issuer - any changes will log out all of the customers

‎src/Web/Grand.Web.Store/App_Data/appsettings.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
8484
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
8585
"KeyPersistenceLocation": "",
86-
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
87-
"CookieAuthExpires": 8760,
86+
//Gets or sets a value indicating for cookie auth expires in hours. A staff sign-in ends 12 hours after it was made,
87+
//whether the panel is in use or not; the storefront keeps a long sign-in (8760 = 24 * 365)
88+
"CookieAuthExpires": 12,
8889
//Gets or sets a value for cookie prefix - any changes will log out all of the customers
8990
"CookiePrefix": ".Grand.",
9091
//Gets or sets a value for cookie claim issuer - any changes will log out all of the customers

‎src/Web/Grand.Web.Vendor/App_Data/appsettings.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@
8383
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
8484
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
8585
"KeyPersistenceLocation": "",
86-
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
87-
"CookieAuthExpires": 8760,
86+
//Gets or sets a value indicating for cookie auth expires in hours. A staff sign-in ends 12 hours after it was made,
87+
//whether the panel is in use or not; the storefront keeps a long sign-in (8760 = 24 * 365)
88+
"CookieAuthExpires": 12,
8889
//Gets or sets a value for cookie prefix - any changes will log out all of the customers
8990
"CookiePrefix": ".Grand.",
9091
//Gets or sets a value for cookie claim issuer - any changes will log out all of the customers

0 commit comments

Comments
 (0)