DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34547>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34547 Summary: Tomcat "forgets" a session attribute when reloading context Product: Tomcat 5 Version: 5.5.9 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Unknown AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Hi 'catters. I am having a small but annoying behavior in Tomcat. Tested on 5.0.28 and 5.5.9 I use Eclipse 3.02 for development, along the Sysdeo Tomcat Plugin and Freemarker for MVC. My context path is set to be reloadable, and when i am coding, if i make some change to the code, the context gets reloaded by the plugin, and a session attribute gets null'ed. The weirdest thing is that not all of the session attributes are nulled. Just this one we will call "user". I will try to explain what happens with pseudocode. When the users log on to my application, this happens: ForumUser user = run_sql_here; ForumUser is a bean with some properties. That query stores: -a user id (int) -a timezone (string) -a language (string) All of the other attributes in the object are not used at this time. session.setAttribute("logged_user_name",username); session.setAttribute("permission",permissions); if (user!=null) { session.setAttribute("userpreferences",user); } This is the ONLY time that attribute gets set. It ONLY gets removed when the session is invalidated. When i change code and the context gets reloaded, the "user" attribute gets null, and the other 2 attributes (permission and logged_user_name) are OK If i don't reload the context, everything is OK. Does anyone have any idea of what is going on? Do you guys need my code? I will gladly do whatever test you need me to do to resolve this. It is very annoying to keep logging out and back in to test new code so my session gets corrected -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]