Invalidating a session in java internet dating 24

Rated 4.66/5 based on 926 customer reviews

Illegal State Exception: get Last Accessed Time: Session already invalidated at org.apache.catalina.session.Standard Last Accessed Time(Standard at org.apache.catalina.session.This user specific data is commonly in session, so invalidating the session in the action make it an unnatural place to do it (as explained in my previous posts.) From a simplicity point of view, the different methods enumerated in this thread are no more simpler than the the action. I don't think the goal was to show that it was more "convenient" to do it in the action.

(*Chris*) --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] There is one extra reason in favour of doing in the action: it's really simple. You can implement Servlet Request Aware, an call Session().invalidate(); Alvaro.

However, for purists, it IS putting control logic in a jsp page, which purists do not view as 'OK' (speaking as a purist myself, while acknowledging this as a possible character flaw.).

- Ray Clough -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] I'm not a purist myself, so it may break the MVC model somewhere, but (at lest in the apps I coded) I didn't find any use case that forced my to invalidate the session into a Logout action class.

I keep on saying that you can perform exactly the same with Logout Action, but keeping away code from JSP.

However, I agree that in very small apps is ok to do a little scripting. On 9/12/07, Gabriel Belingueres The only thing "wrong" with it is that now you are putting application control logic in a jsp page, which is 'OK' for small apps, and is probably 'OK' in this particular instance if there are no complicating factors.

Leave a Reply