I am playing with a small app in which the session is scaled the final method is sending mail as sending mail. How can I invalidate my session? Right now, when the user again calls the initial URL, then the session still remains and all the pre-filled form data is still there.
I have found examples of how to negotiate and with EJB, but not with POJOs and sessions.
Thanks, Rory
You can use this to cancel the session Code for:
session. Difference () Invalid ();
In response to your follow-up "question" (which you have added as an answer, oddly). After informing the user of success, to close the session, you create a "confirmation" page and redirect it based on the rule associated with the "success" result. Then create a page action to invalidate the session.
& lt; Pageview-id = "/ process / confirm.xhtml" action = "# {emailManager.complete session}" & gt; Technically, the page will be closed to close the session so that the session can be made to issue a time in relation to accessing the data, so that you have to hack around with page parameters to compensate. That's because you're basically using "incorrect" using one session per email, you may be better off using the conversation because there is an old annotation that ends the conversation after providing a view - it is very easy . Once more involved in your application, you will need to switch to using conversations, than any other work held in the middle of any work, will be lost. I think it will be very quick This issue of time and state management issues are designed to solve the seam dialogue.
Comments
Post a Comment