cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend time user stays logged in

traductionbiz
Champ in-the-making
Champ in-the-making
Hi,

My users are complaining that they get logged out of their sessions too quickly when inactive, and keep having to log back in.

How can I extend the time users stay logged in?
2 REPLIES 2

gnyce
Champ in-the-making
Champ in-the-making
Don't know a definitive, but you should be able to test this out pretty easily with making a change, restarting Tomcat.

Default is I think 60 minutes (changed value below).  It used to be that you would edit the ~/tomcat/conf/web.xml and look for this line:

web.xml:  <!– You can set the default session timeout (in minutes) for all newly   –>
web.xml:        <session-timeout>600</session-timeout>

But if we can trust you saying that you are on on 3.4c…  I _think_ instead it is goign to be one of these files…

./tomcat/webapps/alfresco/WEB-INF/web.xml
./tomcat/webapps/ROOT/WEB-INF/web.xml
./tomcat/webapps/manager/WEB-INF/web.xml
./tomcat/webapps/host-manager/WEB-INF/web.xml
./tomcat/webapps/share/WEB-INF/web.xml

same parameter:

   <session-config>
      <session-timeout>600</session-timeout>
   </session-config>

I changed the share one… seems to be working here.

traductionbiz
Champ in-the-making
Champ in-the-making
Hi,

I found the parameter in:

./tomcat/webapps/alfresco/WEB-INF/web.xml
./tomcat/webapps/share/WEB-INF/web.xml

As you say, it's same parameter in both files:

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

60 = minutes, so one can increase as desired.

Thanks for your help! 🙂