掲示板

logout problem

11年前 に Syed Umair によって更新されました。

logout problem

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
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??? emoticon
Thnx,
Umair
thumbnail
11年前 に Subhash Pavuskar によって更新されました。

RE: logout problem

Regular Member 投稿: 234 参加年月日: 12/03/13 最新の投稿
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.

<script>
if(window.history.forward(1) != null)
                 window.history.forward(1);
</script>



Hope this may help you !!
11年前 に Syed Umair によって更新されました。

RE: logout problem

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
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.
thumbnail
11年前 に Gaurav Jain によって更新されました。

RE: logout problem

Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
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
11年前 に Syed Umair によって更新されました。

RE: logout problem

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
Gaurav, can you explain the condition that should be applied. I am unable to do this.
thumbnail
11年前 に Nikhil Nishchal によって更新されました。

RE: logout problem

Regular Member 投稿: 176 参加年月日: 12/06/22 最新の投稿
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.
11年前 に Syed Umair によって更新されました。

RE: logout problem (回答)

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
If anyone interested, I have solved my problem by add following code in portal-ext.properties file.
browser.cache.signed.in.disabled=true
8年前 に NIRALI A JOSHI によって更新されました。

RE: logout problem

New Member 投稿: 2 参加年月日: 15/02/21 最新の投稿
Hi Syed,

Thank u very much for your Solution.
I use it in my Application and it works.
thumbnail
11年前 に Bart Simpson によって更新されました。

RE: logout problem

Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
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.
11年前 に Syed Umair によって更新されました。

RE: logout problem

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
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.
thumbnail
11年前 に Bart Simpson によって更新されました。

RE: logout problem

Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
something similar , has been reported, check the fix http://issues.liferay.com/browse/LPS-16367
11年前 に Syed Umair によって更新されました。

RE: logout problem

Junior Member 投稿: 36 参加年月日: 12/10/11 最新の投稿
yeah, I have seen this fix. But don't know why, I am still facing this problem... emoticon