Why "session has expired" occurs so often?

User b0ad3f3021

26-04-2005 19:50:05

After installing jchem3.0.11, our query.jsp always shows:





Your session has expired


To go back to the starting page, please click here.





(you have to "submit" the structure table again). The initsearch screen is fine though.





It was not the case with older versions.





Why?

ChemAxon 9c0afc9aaf

27-04-2005 05:59:28

Dear Shaobin,





1. You must allow session cookies in your browser to be able to use the JSP example application.





For example in Internet Explorer you can change the settings under:





Tools -> Internet Options -> Privacy tab





You can check if your browser is configured correctly with the live example on our site:





http://www.jchem.com/examples/jsp1_x/index.jsp





2. The web server can also has a time-out limit for sessions, but sessions usually need several minutes idle time before expiring.


You can find out how to set this value for Tomcat here:





http://www.jchem.com/doc/admin/tomcat.html#timeout





3. You cannot refer to query.jsp directly in our JSP application, because some objects (e.g. database connection) are created on preceding pages.


Please refer to index.jsp instead.


Of course our users have the ability to alter the source of this example JSP application to any extent to suit their custom requirements.





Best regards,





Szilard