THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public class MySession extends WebSession { public MySession(WebApplicationRequest applicationrequest) { super(applicationrequest); } private String myAttribute; // ... getters and setters } |
and override either of the following methods on your Application class:
Code Block |
---|
protected ISessionFactory getSessionFactory() { return this.sessionFactory; } @Override public Session newSession(Request request, Response response) { return new MySession(WebApplication.thisrequest); } |
Custom RequestCycles
Describe how to use custom request cycles.