留言板
logout problem
Hi,
I am developing a portal in liferay 6.1.1 CE. The problem I am facing is when user logs out from portal, he or she can revisit the portal pages using browsers back button. I don't want to allow the users to do that. How can I disable this feature.
Any valuable suggestions, please???
Thnx,
Umair
I am developing a portal in liferay 6.1.1 CE. The problem I am facing is when user logs out from portal, he or she can revisit the portal pages using browsers back button. I don't want to allow the users to do that. How can I disable this feature.
Any valuable suggestions, please???
Thnx,
Umair
Hey !!
You should place the following JavaScript code in your home page header section.if you move from page1 to page2, and want to disable the browser back in page 2.
Hope this may help you !!
You should place the following JavaScript code in your home page header section.if you move from page1 to page2, and want to disable the browser back in page 2.
<script>
if(window.history.forward(1) != null)
window.history.forward(1);
</script>
Hope this may help you !!
Hi Subhash Pavuskar,
thnx for reply, but I have tried this one. It works for all pages even if user is signed in. I want to disable back only when user is sign out.
thnx for reply, but I have tried this one. It works for all pages even if user is signed in. I want to disable back only when user is sign out.
Syed Umair:
Hi Subhash Pavuskar,
thnx for reply, but I have tried this one. It works for all pages even if user is signed in. I want to disable back only when user is sign out.
You may put this script in condition so that it should be applied only when user is signed-out
Gaurav, can you explain the condition that should be applied. I am unable to do this.
you can hook to login portlet that after clicking logout button or visiting logout url this JS should call.
Also can be manage by theme if logout button manage through theme.
Also can be manage by theme if logout button manage through theme.
When user revisits the portal page by back button, does it show the user as logged in? I saw this once in one of the beta versions of Liferay, and specifically for IE but I think it was reported to Liferay.
Hi Bart Simpson,
It shows all private pages and user can navigate only by back button, yes no links work but I want that user should not see my private pages data as well.
It shows all private pages and user can navigate only by back button, yes no links work but I want that user should not see my private pages data as well.