Search in sources :

Example 6 with Session

use of org.webpieces.ctx.api.Session in project webpieces by deanhiller.

the class ScopesController method receiveLongSession.

public Action receiveLongSession() {
    Session session = Current.session();
    for (int i = 0; i < 100; i++) {
        String someValue = session.get("someKey" + i);
        System.out.println(someValue);
    }
    return Actions.renderThis();
}
Also used : Session(org.webpieces.ctx.api.Session)

Aggregations

Session (org.webpieces.ctx.api.Session)6 FlashSub (org.webpieces.ctx.api.FlashSub)1 RequestContext (org.webpieces.ctx.api.RequestContext)1 RouterRequest (org.webpieces.ctx.api.RouterRequest)1 Validation (org.webpieces.ctx.api.Validation)1 BadCookieException (org.webpieces.router.api.exceptions.BadCookieException)1 FlashImpl (org.webpieces.router.impl.ctx.FlashImpl)1 SessionImpl (org.webpieces.router.impl.ctx.SessionImpl)1 ValidationImpl (org.webpieces.router.impl.ctx.ValidationImpl)1