Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Syed Umair
logout problem
29. Oktober 2012 23:20
Antwort

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

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
29. Oktober 2012 23:34
Antwort

Subhash Pavuskar

Rang: Regular Member

Nachrichten: 234

Eintrittsdatum: 12. März 2012

Neue Beiträge

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
29. Oktober 2012 23:42
Antwort

Bart Simpson

Rang: Liferay Master

Nachrichten: 524

Eintrittsdatum: 29. August 2011

Neue Beiträge

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
29. Oktober 2012 23:45
Antwort

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

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
29. Oktober 2012 23:47
Antwort

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

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
29. Oktober 2012 23:57
Antwort

Bart Simpson

Rang: Liferay Master

Nachrichten: 524

Eintrittsdatum: 29. August 2011

Neue Beiträge

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

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

yeah, I have seen this fix. But don't know why, I am still facing this problem... emoticon
Gaurav Jain
RE: logout problem
30. Oktober 2012 00:29
Antwort

Gaurav Jain

Rang: Regular Member

Nachrichten: 146

Eintrittsdatum: 31. Januar 2011

Neue Beiträge

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
30. Oktober 2012 00:39
Antwort

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

Gaurav, can you explain the condition that should be applied. I am unable to do this.
Nikhil Nishchal
RE: logout problem
30. Oktober 2012 02:21
Antwort

Nikhil Nishchal

Rang: Regular Member

Nachrichten: 146

Eintrittsdatum: 21. Juni 2012

Neue Beiträge

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
5. November 2012 00:46
Antwort

Syed Umair

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 11. Oktober 2012

Neue Beiträge

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
5. Januar 2016 01:24
Antwort

NIRALI A JOSHI

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 21. Februar 2015

Neue Beiträge

Hi Syed,

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