|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Hi guys,
my first wicket mailing list post. I just started using Wicket couple gays ago (after using Tapestry and ZK), and I have to say, I am impressed. Congratulation to great framework! I have tried to port my application, which uses Acegi Spring security to Wicket. I managed to port the core of the application, but had problem with Acegi Spring security integration. I used http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html wiki article, but I couldn't figure out how to define login page and login error page in acegi configuration (I will post different question about it). So I decided to use plain old JSP to implement login (and login error) page. That works OK, I can login to the application. I have logout action in my application implemented in MyAppSession that extends AuthenticatedWebSession: setAuthentication(null); invalidate(); That logs me out OK. But when I login again, after the login page (login.jsp), instead of application home page, I get Page Expired page with a link to my application home page. My question is, how to you prevent or avoid the Page Expired page. Thanks for great framework and for your help. Lubos |
|
|
Re: Page Expired after logout and re-login
by igor.vaynberg
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message what url causes the page expired page?
-igor On 7/28/07, lubosp <pochmans@...> wrote: > > > Hi guys, > > my first wicket mailing list post. I just started using Wicket couple gays > ago (after using Tapestry and ZK), and I have to say, I am impressed. > Congratulation to great framework! > > I have tried to port my application, which uses Acegi Spring security to > Wicket. I managed to port the core of the application, but had problem > with > Acegi Spring security integration. I used > http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html wiki > article, but I couldn't figure out how to define login page and login > error > page in acegi configuration (I will post different question about it). > > So I decided to use plain old JSP to implement login (and login error) > page. > That works OK, I can login to the application. I have logout action in my > application implemented in MyAppSession that extends > AuthenticatedWebSession: > > setAuthentication(null); > invalidate(); > > That logs me out OK. But when I login again, after the login page > (login.jsp), instead of application home page, I get Page Expired page > with > a link to my application home page. > > My question is, how to you prevent or avoid the Page Expired page. > > Thanks for great framework and for your help. Lubos > > -- > View this message in context: > http://www.nabble.com/Page-Expired-after-logout-and-re-login-tf4162767.html#a11844379 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > IMPORTANT NOTICE: > > This mailing list is shutting down. Please subscribe to the Apache Wicket > user list. Send a message to: "users-subscribe at wicket.apache.org" and > follow the instructions. > _______________________________________________ > Wicket-user mailing list > Wicket-user@... > https://lists.sourceforge.net/lists/listinfo/wicket-user > This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Igor,
after login page (login.jsp) it is redirected to /MyApp/app which goes to my wicket home page, and that one is expired. Is it possible that I am missing something on logout action? Is it enough to do session.invalidate()? Note, it works properly the first time, only after I log out and then go to /MyApp/app again, I get the login page and after it the Page expired page. Lubos
|
|
|
Re: Page Expired after logout and re-login
by igor.vaynberg
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message hrm, i dont see how /MyApp/app can ever cause a page expired error because
it is a bookmarkable url and so a new instance of page is always created. i would debug the request cycle and see why it cannot find the page, seems very strange to me -igor On 7/28/07, lubosp <pochmans@...> wrote: > > > Igor, > > after login page (login.jsp) it is redirected to /MyApp/app which goes to > my > wicket home page, and that one is expired. > > Is it possible that I am missing something on logout action? > Is it enough to do session.invalidate()? > > Note, it works properly the first time, only after I log out and then go > to > /MyApp/app again, I get the login page and after it the Page expired page. > > Lubos > > > igor.vaynberg wrote: > > > > what url causes the page expired page? > > > > -igor > > > > > > On 7/28/07, lubosp <pochmans@...> wrote: > >> > >> > >> Hi guys, > >> > >> my first wicket mailing list post. I just started using Wicket couple > >> gays > >> ago (after using Tapestry and ZK), and I have to say, I am impressed. > >> Congratulation to great framework! > >> > >> I have tried to port my application, which uses Acegi Spring security > to > >> Wicket. I managed to port the core of the application, but had problem > >> with > >> Acegi Spring security integration. I used > >> http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html wiki > >> article, but I couldn't figure out how to define login page and login > >> error > >> page in acegi configuration (I will post different question about it). > >> > >> So I decided to use plain old JSP to implement login (and login error) > >> page. > >> That works OK, I can login to the application. I have logout action in > my > >> application implemented in MyAppSession that extends > >> AuthenticatedWebSession: > >> > >> setAuthentication(null); > >> invalidate(); > >> > >> That logs me out OK. But when I login again, after the login page > >> (login.jsp), instead of application home page, I get Page Expired page > >> with > >> a link to my application home page. > >> > >> My question is, how to you prevent or avoid the Page Expired page. > >> > >> Thanks for great framework and for your help. Lubos > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Page-Expired-after-logout-and-re-login-tf4162767.html#a11844379 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find problems? Stop. > >> Now Search log events and configuration files using AJAX and a browser. > >> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >> _______________________________________________ > >> IMPORTANT NOTICE: > >> > >> This mailing list is shutting down. Please subscribe to the Apache > Wicket > >> user list. Send a message to: "users-subscribe at wicket.apache.org" > and > >> follow the instructions. > >> _______________________________________________ > >> Wicket-user mailing list > >> Wicket-user@... > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > IMPORTANT NOTICE: > > > > This mailing list is shutting down. Please subscribe to the Apache > Wicket > > user list. Send a message to: "users-subscribe at wicket.apache.org" and > > follow the instructions. > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@... > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/Page-Expired-after-logout-and-re-login-tf4162767.html#a11844509 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > IMPORTANT NOTICE: > > This mailing list is shutting down. Please subscribe to the Apache Wicket > user list. Send a message to: "users-subscribe at wicket.apache.org" and > follow the instructions. > _______________________________________________ > Wicket-user mailing list > Wicket-user@... > https://lists.sourceforge.net/lists/listinfo/wicket-user > This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Igor,
so you do not think that session.invalidate() can cause the page to expire? I do not know if it makes difference, but I use Acegi, and regular login.jsp page for login page, not a Wicket managed page (I did not figure out how to use Wicket managed login page with Acegi). Lubos
|
|
|
Re: Page Expired after logout and re-login
by Eelco Hillenius
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message > so you do not think that session.invalidate() can cause the page to expire?
Only if you try to render a page that is part of that old - now invalidated - session. Make sure Wicket doesn't try to do that (e.g. check whether the authorization strategy doesn't try to do another redirect). Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
|
|
Re: Page Expired after logout and re-login
by Eelco Hillenius
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Btw this user list is about to shut down. Please subscribe to
users@... (by sending an email to users-subscribe@...) and have future discussions there. Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message After re-login when I get Page Expired, the url is: http://localhost:8080/MyApp/app/?wicket:interface=:0::
|
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Thanks Eelco, I already did. But I like using Nabble so that is how I got to this mailing list, and thought it is the new mailing list. Do you know if users@wicket.apache.org is available on Nabble? Lubos
|
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Oops, never mind. I see the new users list on Nabble. Just clicked on wrong one. Sorry for the noise.
|
|
|
Re: Page Expired after logout and re-login
by Eelco Hillenius
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message > After re-login when I get Page Expired, the url is:
> http://localhost:8080/MyApp/app/?wicket:interface=:0:: Yeah, that's a reference to an already rendered page. Try to find why it tries to render that. You could try setting a break point in the Wicket filter and go from there for instance, and/ or check out what your authorization strategy does (I assume you have a custom one installed). Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
|
|
Re: Page Expired after logout and re-login
by lubosp
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message I added: setResponsePage(MyAppHome.class); after session.invalidate(); , and that fixed the problem. Thanks guys for all the help, you are amazingly responsive. Now I feel bad and have to be more responsive with open source project I manage 8-). You are setting the example! BTW, I came with solution after reading the first chapter of Wicket In Action. Thanks again, Lubos
|
|
|
Re: Page Expired after logout and re-login
by Eelco Hillenius
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message > Thanks guys for all the help, you are amazingly responsive. Now I feel bad
> and have to be more responsive with open source project I manage 8-). You > are setting the example! Heh, cool. Which one is that? > BTW, I came with solution after reading the first chapter of Wicket In > Action. And that's only the *first* chapter! :) Eelco ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions. _______________________________________________ Wicket-user mailing list Wicket-user@... https://lists.sourceforge.net/lists/listinfo/wicket-user |
| Free embeddable forum powered by Nabble | Forum Help |