-
1. Re: Web Session persistence at reboot
ben.wang Mar 16, 2006 4:14 AM (in response to tremalnaik)You mean rebooting all of the cluster nodes? Or just one node? If the former, you should get a new session unless the browser or edge server caches it. If the later, yes you will get the old session back because it will retrieve the old state from the other group member (actually coordinator).
-
2. Re: Web Session persistence at reboot
tremalnaik Mar 16, 2006 6:46 AM (in response to tremalnaik)Ok, that may be good, but what about the real problem I mentioned? I quote it here below:
That would not be bad, except that now a user can see the session of a different previous user!!!! I suppose this is due the fact that the container assigned to the user the same session ID of another user prior the reboot, but I did not investigate further.
Did you ever face something similar?
If you don't mind you may try the following: opening two browser (IE), logging in as user_a in the first, and as user_b in the second. Populate your session performing some actions. Don't log out nor shut down the browsers and restart the server. After the reboot try to perform some action. When re-promped swap the users (user_b in the first and user_a in the second) and look if tou have the same problem. If not, probabily I'm doing something wrong with my app.
I'm using Struts 1.1 and form authentication.
Thanks -
3. Re: Web Session persistence at reboot
brian.stansberry Mar 16, 2006 1:08 PM (in response to tremalnaik)What replication granularity are you using: SESSION or ATTRIBUTE?
-
4. Re: Web Session persistence at reboot
tremalnaik Mar 17, 2006 4:32 AM (in response to tremalnaik)This is the setting I'm using in jboss-web.xml:
<replication-config> <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger> <replication-granularity>ATTRIBUTE</replication-granularity> </replication-config>
The file tc5-cluster-service.xml is unchanged
Thanks -
5. Re: Web Session persistence at reboot
brian.stansberry Mar 20, 2006 2:24 PM (in response to tremalnaik)Do you have a simple war I can use to test this? I want to do as you suggest, but don't have the spare cycles to build up the war in the next few days.
If you do, please open an issue at jira.jboss.com (project JBoss Application Server -- not JBoss Clustering) and attach the war to it. -
6. Re: Web Session persistence at reboot
tremalnaik Mar 23, 2006 8:15 AM (in response to tremalnaik)I'll do it ASAP