Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36205
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2017-01-21 11:43 -0800 |
| References | (1 earlier) <o4uliq$181n$1@gioia.aioe.org> <o4uogj$1b24$1@gioia.aioe.org> <0dec1ad1-3625-4ac6-91aa-9b176256554b@googlegroups.com> <o53veg$1ft6$4@gioia.aioe.org> <ednau6FenddU1@mid.individual.net> |
| Message-ID | <95e6be02-ad5b-41d6-a205-c33aa6b448e2@googlegroups.com> (permalink) |
| Subject | Re: Browser Back Button |
| From | Davej <galt_57@hotmail.com> |
On Wednesday, January 11, 2017 at 12:13:35 PM UTC-6, Robert Klemme wrote:
> On 11.01.2017 01:49, Arne Vajhøj wrote:
> > On 1/10/2017 6:29 PM, Davej wrote:
>
> >> 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.
>
> I do not think that is necessary, you just need to record proper login
> state in the session. Creating new sessions eats up entropy and is
> usually also slower than updating the session instance.
>
> > 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.
>
> Agree. This is a typical use case for using a Filter.
>
What about the practice of placing this at the top of a JSP?
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
response.setHeader("Expires", "0"); // Proxies.
%>
<!DOCTYPE html>
[...etc...]
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