Hi,
try using session listener interface ISessionListener. This entity
defines method onCreated called after a new session ahas been created.
To register a custom session listener use the following code in
application class:
public void init(){
super.init();
ISessionListener myListener;
//listener initialization...
getSessionListeners().add(myListener);
}
Is it possible to redirect user to the HomePage when new session is created?
@Override
public Session newSession(Request request, Response response)
{
//RequestCycle.get().setResponsePage(getHomePage());
//or
//RequestCycle.get().replaceAllRequestHandlers(new
RenderPageRequestHandler(new //PageProvider(getHomePage())));
// do not work
}
The main idea is always show HomePage when user logged in to the application
and not take into account the URL which was printed to the address line
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org