Package com.vtence.molecule.middlewares

Examples of com.vtence.molecule.middlewares.CookieSessionTracker


        this.sessionTracker.expireAfter(seconds);
    }

    public void run(WebServer server) throws IOException {
        // Track sessions using a cookie strategy and an in-memory session pool
        sessionTracker = new CookieSessionTracker(new SessionPool(new SecureIdentifierPolicy(), clock));
        server.add(sessionTracker)
              .start(new DynamicRoutes() {{
                         map("/").to(new Application() {
                             public void handle(Request request, Response response) throws Exception {
                                 Session session = Session.get(request);
View Full Code Here

TOP

Related Classes of com.vtence.molecule.middlewares.CookieSessionTracker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.