Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36183
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Browser Back Button |
| Date | 2017-01-10 19:49 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <o53veg$1ft6$4@gioia.aioe.org> (permalink) |
| References | <9fc9d84a-b4a7-45a6-a47a-ab7d885bf5ce@googlegroups.com> <o4uliq$181n$1@gioia.aioe.org> <o4uogj$1b24$1@gioia.aioe.org> <0dec1ad1-3625-4ac6-91aa-9b176256554b@googlegroups.com> |
On 1/10/2017 6:29 PM, Davej wrote: > On Sunday, January 8, 2017 at 7:20:29 PM UTC-6, Arne Vajhøj wrote: >> On 1/8/2017 7:30 PM, Arne Vajhøj wrote: >>> On 1/8/2017 6:41 PM, Davej wrote: >>>> The problem is that if I immediately log out after logging in >>>> and then use the browser BACK button the browser will resend >>>> the username and password parameters and log me back in again. >>>> I guess this is just an odd little quirk, but is there perhaps >>>> an easy way to prevent this? >>> >>> I don't think there is anything servlet/JSP specific in the >>> problem. >>> >>> Long time since I have worked with stuff like this, but I believe >>> one way of handling it is to redirect instead of forward. >> >> And to avoid any doubt. LoginServlet redirect instead >> of forward to Membership.jsp. >> > > I'm having a problem using a redirect because I'm using a filter, and > the filter doesn't seem to like that. I end up with a 500 error. > > One solution seems to be to invalidate the session upon a successful > login and create a new session for the session member object. Or you could troubleshoot that filter problem. There must be a reason and a solution to that problem. I would not like to run with a filter that barfs on redirects. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Browser Back Button Davej <galt_57@hotmail.com> - 2017-01-08 15:41 -0800
Re: Browser Back Button Arne Vajhøj <arne@vajhoej.dk> - 2017-01-08 19:30 -0500
Re: Browser Back Button Arne Vajhøj <arne@vajhoej.dk> - 2017-01-08 20:20 -0500
Re: Browser Back Button Davej <galt_57@hotmail.com> - 2017-01-10 15:29 -0800
Re: Browser Back Button Arne Vajhøj <arne@vajhoej.dk> - 2017-01-10 19:49 -0500
Re: Browser Back Button Robert Klemme <shortcutter@googlemail.com> - 2017-01-11 19:13 +0100
Re: Browser Back Button Davej <galt_57@hotmail.com> - 2017-01-21 11:43 -0800
Re: Browser Back Button Robert Klemme <shortcutter@googlemail.com> - 2017-01-22 13:52 +0100
Re: Browser Back Button Davej <galt_57@hotmail.com> - 2017-01-22 08:34 -0800
Re: Browser Back Button Marcel Mueller <news.5.maazl@spamgourmet.org> - 2017-01-09 19:35 +0100
Re: Browser Back Button Arne Vajhøj <arne@vajhoej.dk> - 2017-01-09 19:42 -0500
Re: Browser Back Button Robert Klemme <shortcutter@googlemail.com> - 2017-01-10 08:03 +0100
Re: Browser Back Button lewbloch@gmail.com - 2017-01-10 11:30 -0800
csiph-web