java - Wicket session Expiration -


I am using a class for the session that expands to org.apache.wicket.protocol.http.WebSession ; I need a method when this session will expire as a result of logout or timeout. But I did not find anything. How can I do this?

You can do this at the wicket level:

By using the session history implementation override - override application # new semester Story ()

  @ override protected Aissststor Nuseshnstor () {new second level Kachessteshnstor (new Diskpejastor ()) {@Override protected void onUnbind (string) SessionId) { // This code is called httpSession.invalidate ()}} when the wicket call is made; }  

But there is a flaw: when the session is ended (which is restricted by the servlet container) this code will not be asked. In other words - you can only handle the session destroyed event which is due to the wicket.

You can use the Seral API at the global level - you can respond to the session, whatever it was started,

  HTTPSIZEN LISTENER #SessionDirected (from HTTPPationEvent)  

and assign it to your web-INF / Web. XML

  Linder & gt; & Lt; Audience category & gt; Your.listener.class.full.qualified.name & lt; / Audience & gt; & Lt; / Listener & gt;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -