You can control session time outs in sync with Salesforce. When set up, the session ends automatically for a user when the system is idle for the specified amount of time. The user is logged out and redirected to the login page. After you log back in to the application, a new access token is generated and you can continue from where you left.

For a guest user, a message appears stating that the session is expired. A fresh token is generated and you can start a new session from the home page.

To set up session time out for Customer Community User

  1. Go to Setup, and in the Quick Find box, type Profiles.
  2. Click Profiles.
  3. Click Customer Community User.
  4. Under the System section, click Session Settings.
  5. Click Edit.
  6. From Session Times Out After, select the desired time out value.
  7. Click Save.

To set up session settings in Salesforce

  1. Go to Setup, and in the Quick Find box, type Session Settings.
  2. Click Session Settings.
  3. Under the Session Timeout section, from Timeout Value, select the desired timeout value.
  4. Click Save.

To set up session policies for connected apps

  1. Go to Setup, and in the Quick Find box, type Connected Apps.
  2. Click Connected Apps.
  3. From the available list, click E-Commerce Getway.
  4. Click Edit Policies.
  5. Under the Session Polices section, from Timeout Value, select the desired timeout value.
  6. Click Save.