[opencms-dev] Redirecting to Index page if the user logs out in a protected page

Paul-Inge Flakstad flakstad at npolar.no
Tue Mar 30 16:55:54 CEST 2010


Hi Pujan

Sounds to me like all you need to do is redirect (response.sendRedirect("/your/site/indexpage.html");) after logout procedures have completed?

Paul

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Pujan Kafle
> Sent: 30. mars 2010 16:50
> To: The OpenCms mailing list
> Subject: [opencms-dev] Redirecting to Index page if the user 
> logs out in a protected page
> 
> Hello everyone,
> 
> I have included a small login form on my main template. All the web 
> pages in my site, including the protected ones use the main template.
> However, when I log out from a protected web page, it 
> immediately shows 
> me a HTTP Authentication required popup, which asks for OpenCms login 
> credentials. If I click cancel, I am redirected to Tomcat's 
> HTTP Status 
> 401- Error Page.
> 
> I am wondering, in such scenarios, is it possible to redirect 
> the user 
> to the index page of the site, thus avoiding that 
> Authentication pop-up 
> and Tomcat's error page.
> 
> Your suggestions would be highly appreciated.
> 
> Thanks,
> Pujan
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 


More information about the opencms-dev mailing list