Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 455 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to set session time out for content authors in Sitecore 10.2?

#1
Not able to set session time out in Sitecore 10.2.

If I leave the browser open for more than 20 minutes with the launchpad displayed and then click on any button after that, I expect the session timeout to occur and log me out automatically. But this doesn't happen as I expect.

Is there a way to force a session timeout logout?
Reply

#2
You have to update the `CookieLifetime` and `IdentityTokenLifetimeInSeconds` configuration settings for your Sitecore Identity Server site in `..{your_identity_server_root_folder}\sitecore\Sitecore.Plugin.IdentityServer\Config\identityServer.xml`:

```
<Settings>
<Sitecore>
<IdentityServer>
...
<Authentication>
<!-- Sets the identity server cookie lifetime -->
<CookieLifetime>0.00:25:00</CookieLifetime>
...
</Authentication>

...

<Clients>
<DefaultClient>
...
<IdentityTokenLifetimeInSeconds>1500</IdentityTokenLifetimeInSeconds>
...
</DefaultClient>
...
</Clients>
</IdentityServer>
</Sitecore>
</Settings>

```


By default both settings are set to 25 minutes and you can adjust them for your needs at any time. If you have a requirement to log out your Sitecore Admin Users automatically if they are not using the Sitecore Admin for more than 20 minutes then set `CookieLifetime` to "0.00:20:00" and `IdentityTokenLifetimeInSeconds` to "1200".


Once amended the config settings please remember to restart your Sitecore Identity Server site as it will only read the new settings on the start.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through