Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Syed Umair
logout problem
29 de Outubro de 2012 23:20
Resposta

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

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 de Outubro de 2012 23:34
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

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 de Outubro de 2012 23:42
Resposta

Bart Simpson

Ranking: Liferay Master

Mensagens: 523

Data de entrada: 29 de Agosto de 2011

Mensagens recentes

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 de Outubro de 2012 23:45
Resposta

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

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 de Outubro de 2012 23:47
Resposta

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

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 de Outubro de 2012 23:57
Resposta

Bart Simpson

Ranking: Liferay Master

Mensagens: 523

Data de entrada: 29 de Agosto de 2011

Mensagens recentes

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

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

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

Gaurav Jain

Ranking: Regular Member

Mensagens: 141

Data de entrada: 31 de Janeiro de 2011

Mensagens recentes

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 de Outubro de 2012 00:39
Resposta

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

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

Nikhil Nishchal

Ranking: Junior Member

Mensagens: 82

Data de entrada: 21 de Junho de 2012

Mensagens recentes

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 de Novembro de 2012 00:46
Resposta

Syed Umair

Ranking: Junior Member

Mensagens: 36

Data de entrada: 11 de Outubro de 2012

Mensagens recentes

If anyone interested, I have solved my problem by add following code in portal-ext.properties file.
1browser.cache.signed.in.disabled=true