Session.invalidate() clears the entire session.

If you want to clear a parameter in your custom session object, just set it to 
null.

MySession.setMyCustomSomething(null);


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-----Original Message-----
From: SunPrairieDude <[email protected]>
Sent: Tuesday, January 13, 2009 7:59 PM
To: [email protected]
Subject: Purging Session Data


I have a question pertaining to Session Management in Wicket. 

I have seen examples of how to create a custom Session object by extending
WebSession. I like this approach in that it ensures the Type Safety of the
data stored within the Session. However, what is not clear to me is, how do
I purge the instance variables when I no longer need them? If I was using
the plain old javax.servlet.HttpSession I could do,
session.removeAttribute(attributeName).

Section 1.2 within the book,Wicket in Action, goes as follows. ".. One of
Wicket’s main features is state management. You want this to be transparent
so you don’t need to worry about managing state all the time."

Does this imply that Wicket manages the Session like JVM manages the memory
(using GC Threads so that we don't explicitly have to invoke System.gc())?

Any clarification would be highly appreciated.

Thanks.

Murali 
-- 
View this message in context: 
http://www.nabble.com/Purging-Session-Data-tp21448622p21448622.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to