You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by J Beets <jb...@cnd.co.nz> on 2003/05/07 01:32:04 UTC

Page has Expired message when implementing container security

Hi,

Am using Tomacat 4.1.24 to process html Forms with Method=Post that 
Action java class files which return html output to the user. Users can use the 
browser Back button to return to the html page and see the data okay if no 
Tomcat login is required.

Since implementing Container managed Security however where users have 
to enter a username and password to access a secure realm, two issues 
occur:

1) The html form is cleared when users use the back button to return to it.
2) If users click a hyperlink on the java class file output then click the Back 
button to return to the java file output page they get a "Warning: page has 
expired" error message. They need to Refresh to see it again.

Have looked at all the mailing list archives and see some users have asked 
the same question but there are no answers on how to stop the page expired 
message or the html form clearing on clicking the Back button.

- The problem does Not occur if container security is Not used.
- The problem does Not occur on _some_ Win 2000 PC's using IE6 SP1 
accessing the server running Tomcat. All older IE browsers and some IE6 
SP1 PCs give these problems.

How can I stop these errors when authentication is on and why do some IE6 
PCs on the same network not have the problem?

Regards

Joop


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Page has Expired message when implementing container security

Posted by Bill Barker <wb...@wilshire.com>.
Tomcat 4.x sets most of these by default for security-protected pages.  You
can disable this in 4.1.24 by explicitly configuring the Authenticator.  In
your server.xml file (or other xml file where you configure the context),
you do something like (for Form authentication):
  <Context ......>
    <!-- Other per-context config goes here -->
    <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
                disableProxyCaching="false" />
  </Context>

Your className has to match your auth-method (e.g. BasicAuthenticator for
"Basic", SSLAuthenticator for "Client-Cert").

Word of warning:  This option doesn't (currently) play well with the "admin"
webapp.

"Jens Skripczynski" <sk...@myrealbox.com> wrote in message
news:20030507002510.GA8497@shadowland.intern.shadowbyte.net...
> Hi,
>
> as far as I know, the "Page has expired" warning is issued, when
> the Browser gets some HTTP Header saying caching is not allowed:
> for http 1.1:
> Cache-Control: no-cache
> Cache-Control: max-age=0,must-revalidate
> for http-1.0:
> Pragma: no-cache
>
>
>
> J Beets:
> > Hi,
> >
> > Am using Tomacat 4.1.24 to process html Forms with Method=Post that
> > Action java class files which return html output to the user. Users can
use the
> > browser Back button to return to the html page and see the data okay if
no
> > Tomcat login is required.
> >
> > Since implementing Container managed Security however where users have
> > to enter a username and password to access a secure realm, two issues
> > occur:
> >
> > 1) The html form is cleared when users use the back button to return to
it.
> > 2) If users click a hyperlink on the java class file output then click
the Back
> > button to return to the java file output page they get a "Warning: page
has
> > expired" error message. They need to Refresh to see it again.
> >
> > Have looked at all the mailing list archives and see some users have
asked
> > the same question but there are no answers on how to stop the page
expired
> > message or the html form clearing on clicking the Back button.
> >
> > - The problem does Not occur if container security is Not used.
> > - The problem does Not occur on _some_ Win 2000 PC's using IE6 SP1
> > accessing the server running Tomcat. All older IE browsers and some IE6
> > SP1 PCs give these problems.
> >
> > How can I stop these errors when authentication is on and why do some
IE6
> > PCs on the same network not have the problem?
> >
> > Regards
> >
> > Joop
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
> Ciao
>
> Jens Skripczynski
> --
> E-Mail: skripi-lists(at)myrealbox(dot)com
>
> If Microsoft is innovative in any area, it is in creating new forms of
> intimidation.                                            -- Ralph Nader




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Page has Expired message when implementing container security

Posted by Jens Skripczynski <sk...@myrealbox.com>.
Hi,

as far as I know, the "Page has expired" warning is issued, when
the Browser gets some HTTP Header saying caching is not allowed:
for http 1.1:
Cache-Control: no-cache
Cache-Control: max-age=0,must-revalidate
for http-1.0:
Pragma: no-cache

      

J Beets:
> Hi,
> 
> Am using Tomacat 4.1.24 to process html Forms with Method=Post that 
> Action java class files which return html output to the user. Users can use the 
> browser Back button to return to the html page and see the data okay if no 
> Tomcat login is required.
> 
> Since implementing Container managed Security however where users have 
> to enter a username and password to access a secure realm, two issues 
> occur:
> 
> 1) The html form is cleared when users use the back button to return to it.
> 2) If users click a hyperlink on the java class file output then click the Back 
> button to return to the java file output page they get a "Warning: page has 
> expired" error message. They need to Refresh to see it again.
> 
> Have looked at all the mailing list archives and see some users have asked 
> the same question but there are no answers on how to stop the page expired 
> message or the html form clearing on clicking the Back button.
> 
> - The problem does Not occur if container security is Not used.
> - The problem does Not occur on _some_ Win 2000 PC's using IE6 SP1 
> accessing the server running Tomcat. All older IE browsers and some IE6 
> SP1 PCs give these problems.
> 
> How can I stop these errors when authentication is on and why do some IE6 
> PCs on the same network not have the problem?
> 
> Regards
> 
> Joop
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

If Microsoft is innovative in any area, it is in creating new forms of
intimidation.                                            -- Ralph Nader


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org