2016-07-01 12 views
0

Gibt es einen Mechanismus zum Ausschließen von URL, wo Benutzer Sitzung verlängern kann? Ich habe ein JS-Überwachungs-Skript, das Anfragen während Inaktivität, Mausbewegung usw. sendet - dies verursacht die Verlängerung der Sitzung.Tomcat Sitzung Verlängerung Ausschluss

+0

Was machen Sie mit diesen "Ping" Anfragen auf dem Server - brauchen Sie Zugang zu der Sitzung? – wero

+0

@wero ich brauche: es überwacht die Aktivität des Benutzers. Und ich kann den JSESSIONID-Header nicht von der Anfrage entfernen. –

Antwort

0
Your monitoring script send the request during the inactivity to extend the session of the user. 

If you would not use the monitoring script then Your user would be logout from the application due to session timeout. 

You can use the session time feature of the Web-Application. 

<session-config> 
    <session-timeout>20</session-timeout> 
</session-config> 

The number in session-timeout tag is in minutes. To make it unlimited or no time out in Tomcat, simply set the number to -1 and restart your Tomcat.