K
K Balusu
Hi,
How can I invalidate the user sessions in webapplications using
JSP/Servlets. Basically this is what we wanted to achieve.
When the system administrator wants to perform certain maintenance
tasks, we want to display a warning message to all the users of the
web application that the server will be offline after 15 mts. Once the
countdown is finished, we would like to close all the sessions that
are active ( we are not planning to shutdown the application, we want
to back/restore the database). Is there any way to do this.
One idea we have is to maintain a application variable ( in the
servlet context) and all the jsp pages check this variable before
loading. But this only works with users that are active and
communicating with the server when the count down is finished. But we
also would like to logoff and close the sessions of all the other
users that might be inactive during this maintenance operation.
TIA,
Regards,
Krishna
How can I invalidate the user sessions in webapplications using
JSP/Servlets. Basically this is what we wanted to achieve.
When the system administrator wants to perform certain maintenance
tasks, we want to display a warning message to all the users of the
web application that the server will be offline after 15 mts. Once the
countdown is finished, we would like to close all the sessions that
are active ( we are not planning to shutdown the application, we want
to back/restore the database). Is there any way to do this.
One idea we have is to maintain a application variable ( in the
servlet context) and all the jsp pages check this variable before
loading. But this only works with users that are active and
communicating with the server when the count down is finished. But we
also would like to logoff and close the sessions of all the other
users that might be inactive during this maintenance operation.
TIA,
Regards,
Krishna