Re: Session#invalidateNow() question

2018-03-12 Thread Emond Papegaaij
Hi, The javadoc states 'Whether the session is invalid now, or will be invalidated by the end of the request.' The first part is no longer true. The javadoc also states that you normally should not need this method (why is it part of the public API then?) I think we can fix the method by

Re: Session#invalidateNow() question

2018-03-10 Thread Sven Meier
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

Session#invalidateNow() question

2018-03-09 Thread 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