Hi  Marcelo,

//You solve this issue with a redirtect-after-post hack on the logoff
//action.

Thats what iam doing in the following code..

request.getSession().removeAttribute("sessionState");
request.getSession().invalidate();
response.sendRedirect("/BMS/logout_success.jsp");
//This you solve by putting nocache=true in the <controller> element in
//the struts configuration file

here is the code i added into my struts-config.xml file


<action-mappings>

//Different Actions..

</action-mappings>

<controller nocache="true">

</controller>
Iam Still Getting the same problem.In IE i have to hit back button severel
times continuously to to the secured pages after logout.But in Firefox its
displaying with Single hit to Back Button.

Thanks For Your time

Priya


On 12/22/05, Marcelo Morales <[EMAIL PROTECTED]> wrote:
>
> Hello
> On Dec 16, 2005, at 10:48 AM, Priya Saloni wrote:
>
> > Hi there,
> >
> > I facing a BIG problem in my struts based application.When i logout my
> > website and hit back button it showing a page like the following
> >
> > //
> >  Warning: Page has Expired
> > The page you requested was created using information you submitted
> > in a
> > form. This page is no longer available. As a security precaution,
> > Internet
> > Explorer does not automatically resubmit your information for you.
> >
> > To resubmit your information and view this Web page, click the
> > *Refresh*button.
> >
>
> You solve this issue with a redirtect-after-post hack on the logoff
> action.
>
> >
> > //
> >
> > When i refresh the page its showing the secured web pages too.
>
> This you solve by putting nocache=true in the <controller> element in
> the struts configuration file
>
>
> > My code in
> > LogoutAction is as follows
> >
> >     request.getSession().removeAttribute("sessionState");
> >     request.getSession().invalidate();
> >     response.sendRedirect("/BMS/logout_success.jsp");
>
> This is correct. Should do the tick
>
> >
> > sessionState is the VO where iam keeping all the objects  i want to
> > keep in
> > session..Is there any way in struts to make sure that it won't
> > display the
> > page like above..
> >
> > Thanks
> >
> > Priya.
>
>
> Hope It helps
>
>
> Marcelo Morales
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to