Re: signout and encryption key in session
please show your signout code On Mon, Jun 14, 2010 at 8:43 AM, fachhoch fachh...@gmail.com wrote: I encode url in wicket suggested way ie using CryptedUrlWebRequestCodingStrategy. this strategy stores encryption key in session so If I signout user and redirect him to a wicket page I get bad padding or encryption related exceptions becasue session is no more and key to decocde and encode url was in session. . is there any way to retain the encryption key and also signout user ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254370.html Sent from the Wicket - User 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 -- Jeremy Thomerson http://www.wickettraining.com
Re: signout and encryption key in session
here is the code for signout ((AuditWebSession)(Session.get())).signout(); setRedirect(true); throw new RestartResponseException(new AuditWicketApplication.SignInPageHelper().getSignedOutPage()); AuditWebSession is a subclass of AuthenticatedWebSession AuditWicketApplication.SignInPageHelper().getSignedOutPage()return a wicket page class -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254450.html Sent from the Wicket - User 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
Re: signout and encryption key in session
Why are you constructing a new page? Just use the page class so that it's a bookmarkable page rather than a session-relative page. On Mon, Jun 14, 2010 at 9:27 AM, fachhoch fachh...@gmail.com wrote: here is the code for signout ((AuditWebSession)(Session.get())).signout(); setRedirect(true); throw new RestartResponseException(new AuditWicketApplication.SignInPageHelper().getSignedOutPage()); AuditWebSession is a subclass of AuthenticatedWebSession AuditWicketApplication.SignInPageHelper().getSignedOutPage()return a wicket page class -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254450.html Sent from the Wicket - User 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 -- Jeremy Thomerson http://www.wickettraining.com
Re: signout and encryption key in session
No i am not constructing new page I am just returning the class for that page . I am using public C extends Page RestartResponseException(ClassC pageClass) { RequestCycle.get().setResponsePage(pageClass); } here the code for AuditWicketApplication.SignInPageHelper() public static class SignInPageHelper { ApplicationSettings applicationSettings=SpringApplicationContext.getBean(applicationSettings); public Class? extends WebPage getSignInPage(){ return applicationSettings.getSignInPageClass(); } public Class? extends WebPage getSignedOutPage(){ return applicationSettings.getSingedOutPageClass(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/signout-and-encryption-key-in-session-tp2254370p2254482.html Sent from the Wicket - User 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