Example usage for org.apache.wicket Session invalidate

List of usage examples for org.apache.wicket Session invalidate

Introduction

In this page you can find the example usage for org.apache.wicket Session invalidate.

Prototype

public void invalidate() 

Source Link

Document

Invalidates this session at the end of the current request.

Usage

From source file:com.mastfrog.acteur.wicket.ActeurSessionStore.java

License:Apache License

/**
 * @see org.apache.wicket.session.ISessionStore#invalidate(Request)
 *///from w ww .  j a v  a  2s  .c  o m
@Override
public final void invalidate(final Request request) {
    Session httpSession = getHttpSession(request, false);
    if (httpSession != null) {
        // tell the app server the session is no longer valid
        httpSession.invalidate();
    }
}

From source file:org.apache.openmeetings.web.app.WebSession.java

License:Apache License

private static void checkIsInvalid() {
    if (isInvaldSession(get().getId())) {
        setKickedByAdmin(true);/*  w  ww.  j  a  va2s  .c om*/
        removeInvalidSession(get().getId());
        org.apache.wicket.Session session = (org.apache.wicket.Session) get();
        session.invalidate();
        Application.get().restartResponseAtSignInPage();
    }
}