フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Syed Umair
logout problem
2012/10/29 23:20
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/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
Subhash Pavuskar
RE: logout problem
2012/10/29 23:34
答え

Subhash Pavuskar

ランク: Regular Member

投稿: 234

参加年月日: 2012/03/12

最近の投稿

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.

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



Hope this may help you !!
Bart Simpson
RE: logout problem
2012/10/29 23:42
答え

Bart Simpson

ランク: Liferay Master

投稿: 524

参加年月日: 2011/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.
Syed Umair
RE: logout problem
2012/10/29 23:45
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/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.
Syed Umair
RE: logout problem
2012/10/29 23:47
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/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.
Bart Simpson
RE: logout problem
2012/10/29 23:57
答え

Bart Simpson

ランク: Liferay Master

投稿: 524

参加年月日: 2011/08/29

最近の投稿

something similar , has been reported, check the fix http://issues.liferay.com/browse/LPS-16367
Syed Umair
RE: logout problem
2012/10/30 0:05
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/10/11

最近の投稿

yeah, I have seen this fix. But don't know why, I am still facing this problem... emoticon
Gaurav Jain
RE: logout problem
2012/10/30 0:29
答え

Gaurav Jain

ランク: Regular Member

投稿: 146

参加年月日: 2011/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
Syed Umair
RE: logout problem
2012/10/30 0:39
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/10/11

最近の投稿

Gaurav, can you explain the condition that should be applied. I am unable to do this.
Nikhil Nishchal
RE: logout problem
2012/10/30 2:21
答え

Nikhil Nishchal

ランク: Regular Member

投稿: 136

参加年月日: 2012/06/21

最近の投稿

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.
Syed Umair
RE: logout problem
2012/11/05 0:46
答え

Syed Umair

ランク: Junior Member

投稿: 36

参加年月日: 2012/10/11

最近の投稿

If anyone interested, I have solved my problem by add following code in portal-ext.properties file.
1browser.cache.signed.in.disabled=true
NIRALI A JOSHI
RE: logout problem
2016/01/05 1:24
答え

NIRALI A JOSHI

ランク: New Member

投稿: 1

参加年月日: 2015/02/21

最近の投稿

Hi Syed,

Thank u very much for your Solution.
I use it in my Application and it works.