aspose file tools*
The moose likes Struts and the fly likes problem with session timeout during Module Switching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with session timeout during Module Switching" Watch "problem with session timeout during Module Switching" New topic
Author

problem with session timeout during Module Switching

raghu yeggina
Greenhorn

Joined: Feb 11, 2009
Posts: 27
Hi Friends,

I am having a project which uses struts 1.2 and consists of two modules and with the help of 'Switch Action' i am able to switch from one module to another successfully.

But the session timeout specified in the web.xml is not getting applied to the second module i.e. for example i specified the session timeout as one minute in the web.xml and its working fine with the first module, and when we stay idle for that time in the second module the session is not getting destroyed.

I am confirming that session is not getting destroyed as i am using Session Listener and printing a statement on the server console whenever the session is destroyed.

Can any one please help me to resolve the issue and specify how to invalidate the session using session timeout tag when we are browsing the second module also.

I can even post the code if not clear.

Thanks in advance.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 688


Hi,

I think that will not happens that web.xml configure for your web application and that will not change your module wise.

If that another module is your new web application then that application also have separate web.xml file.




Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
raghu yeggina
Greenhorn

Joined: Feb 11, 2009
Posts: 27
Hi Nishan,

Thank you for the reply.

You are right that web.xml is for the whole application and not specific to any single module.

The second module is not another web application but a part of this application only.

for sure we have a single web.xml and the second module is not simply attached with a link or any

but its a module only and as i have stated earlier i am able to successfully integrate and traverse between

the two modules with struts and its built in mechanism.


But still the session is not getting invalidated according to its specified timeout peroid.

Are there any other things to be taken under consideration inorder to solve this problem.

If any, please suggest them.

Thanks in advance
 
jQuery in Action, 2nd edition
 
subject: problem with session timeout during Module Switching