Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set session timeout of greater than 30 minutes

Tags:

jsp

servlets

Dose anybody know how to set session timeout greater than 30 minutes? these two methods wont work (default to 30 min).

<session-config>
<session-timeout>60</session-timeout>
</session-config>

and

session.setMaxInactiveInterval(600); 

Thanks.

like image 877
Switch Avatar asked Sep 10 '09 16:09

Switch


People also ask

How do I change the session inactivity timeout in minutes?

To change the value, follow these steps: Select System administration > Setup > System parameters to open the System parameters page. On the General tab, in the Session management section, enter a value in the Session inactivity timeout in minutes field. Select Save.

How do I change the session timeout value in Microsoft 365?

In the Microsoft 365 admin center, select Org settings, go to the Security & Privacy tab and select Idle session timeout. In the dropdown menu, select a different timeout value and then Save. In the Microsoft 365 admin center, select Org settings, go to the Security & Privacy tab and select Idle session timeout.

How long can I set the session timeout for a session?

You can set the value up to 60 minutes, however doing so might cause extra load on the system. This feature is available as of Platform update 29. If you previously set a session inactivity timeout in the web.config ( WebClientStatefulSessionTimeoutInSeconds key) through a support request, then that old value will still be honored.

What is session idle timeout in Salesforce?

The session idle timeout setting represents the amount of time a user can be inactive before the user's session times out and closes. It only affects user browser sessions. You can set the values from 5 minutes to 60 minutes. This function has a default value of 30 minutes.


1 Answers

If you want to never expire a session use 0 or negative value -1.

<session-config>
    <session-timeout>0</session-timeout>
</session-config>

or mention 1440 it indicates 1440 minutes [24hours * 60 minutes]

<session-config>
  <session-timeout>1440</session-timeout><!-- 24hours -->
</session-config>

Session will be expire after 24hours.

like image 149
UdayKiran Pulipati Avatar answered Oct 22 '22 03:10

UdayKiran Pulipati