Hi,

invalidateNow() calls destroy(), which clears the SESSION_INVALIDATED request 
cycle flag.

isSessionInvalidated()'s javadoc states that 'clients should rarely need this 
method', but apparently they do.
@Edmond: do you think we can/should improve that?

Have fun
Sven


Am 09.03.2018 um 16:22 schrieb Gabor Friedrich:
Hello everybody,

We are in the process of migrating to wicket 7.10.0.

With reference to WICKET-6530, I have the following piece of code:

...

@Override
public void onClick() {

// DO SOMETHING

final Session session = Session.get();
session.invalidateNow();
final boolean *isSessionInvalidated *= session.isSessionInvalidated(); //
false

// DO SOMETHING

}

...

My question is: why is the value of  *isSessionInvalidated *always *false?*.
Note: in wicket 7.9.0 the value of *isSessionInvalidated *is always true.


Thank you,
Gabor



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to