Re: Get session details when it expires

2022-03-15 Thread Martin Grigorov
Hi,

Please see Session#onInvalidate() javadoc.
https://github.com/apache/wicket/blob/d902cdbdd853cb490db1507d79c587acede01ae3/wicket-core/src/main/java/org/apache/wicket/Session.java#L1016

On Tue, Mar 15, 2022 at 11:56 AM Arunachalam Sibisakkaravarthi <
arunacha...@mcruncher.com> wrote:

> Hi guys,
> My app uses custom Session and Session Store classes that extend WebSession
> and HttpSessionStore respectively. Additional details stored in the Session
> class.
> I couldn't get the session when it expires and the app throws the below
> exception when attempting to get the current  session when it expires.
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread
>
> Is there a way to get the session object to get the details upon
> session expiration?
>
>
>
> *Thanks And RegardsSibi.ArunachalammCruncher*
>


Re: Get session details when it expires

2022-03-15 Thread Maxim Solodovnik
from mobile (sorry for typos ;)


On Tue, Mar 15, 2022, 16:56 Arunachalam Sibisakkaravarthi <
arunacha...@mcruncher.com> wrote:

> Hi guys,
> My app uses custom Session and Session Store classes that extend WebSession
> and HttpSessionStore respectively. Additional details stored in the Session
> class.
> I couldn't get the session when it expires and the app throws the below
> exception when attempting to get the current  session when it expires.
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread
>

Maybe the session is alive but you are using "self-constructed" threads?


> Is there a way to get the session object to get the details upon
> session expiration?
>
>
>
> *Thanks And RegardsSibi.ArunachalammCruncher*
>


Get session details when it expires

2022-03-15 Thread Arunachalam Sibisakkaravarthi
Hi guys,
My app uses custom Session and Session Store classes that extend WebSession
and HttpSessionStore respectively. Additional details stored in the Session
class.
I couldn't get the session when it expires and the app throws the below
exception when attempting to get the current  session when it expires.

org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread

Is there a way to get the session object to get the details upon
session expiration?



*Thanks And RegardsSibi.ArunachalammCruncher*