How to keep alive a user's session while they are posting on a forum?
问题 I have a site with a session timeout of 15 minutes. On some pages a user occasionally spends longer than 15 minutes filling in a reply. What is the best solution to keep alive the session in this case? I already use JQuery on these pages, so possibly pinging a server, but on what events? The backend is a Struts on Tomcat . 回答1: Given you don't want to change the site's session timeout.. Set a timeout/interval (< 15min) event in javascript and decide what to do when the event triggers. If you