When the user opens a number of pages then it must
give an atert (session time out) in the last child page.
I had tried with cookie but i can't acces the cookie
after some minutes in a script.
can we read cookie in client side JSP after some time..
or any other suggetion...please help me...
we will need more information regarding ur query. I am not able to figureout what might be the problem you are trying to solve.
>> When the user opens a number of pages then it must
>>give an atert (session time out) in the last child page
this line of the posting is pretty tricky to decipher. if I am not wrong u r trying to give session timeout message on ur own.
general practice is to have this logic on serverside (As all the session information is maintained in server). and on any action from the user you give session timeout message.
make sure ur all direct jsp calls are getting routed through a single servlet.
you can do it through pageID hidden attribute in ur jsp.
secondly before u go in ur if elseif loop in central servlet make sure that you do session validation.
if validation fails take the user to sessiontimeout.jsp page. where u will give the message.
hope this helps