Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sergey B
Mobile device rule prevents access to /c/portal/logout
May 8, 2012 2:50 PM
Answer

Sergey B

Rank: New Member

Posts: 15

Join Date: November 20, 2011

Recent Posts

Folks,

I am having an issue with accessing the logout link when mobile device rules enabled. Here's the problem:

- enabled a rule to redirect all mobile traffic from www.mydomain.com to www.mydomain.com/mobile/main?p_p_id=portletname_WAR_portletsproject&p_p_lifecycle=0&p_p_state=exclusive&p_p_state_rcv=1&p_p_col_id=column-1&p_p_col_count=1
- as you can see /mobile/main shows a portlet in exclusive mode, so all the regular LR controls are not visible (it's a Vaadin portlet simulating a native phone app)
- added a sign out link to my portlet (/c/portal/logout)
- clicking on the link takes me to www.mydomain.com/c/portal/logout, but because of the mobile redirect rule, it never makes it to the logout action and instead redirects me back to my app, still signed in

I've tried every URL imaginable, tried overriding LR actions, tried adding my own structs action for /mobile/portal/logout, tried invalidating the session, NOTHING works. I would REALLY appreciate any suggestions for how to either programmatically log a user out on the back using a LR service or how to redirect to /c/portal/login without the mobile redirect rule firing first.

Thanks
Patrizia D
RE: Mobile device rule prevents access to /c/portal/logout
January 21, 2013 8:07 AM
Answer

Patrizia D

Rank: New Member

Posts: 6

Join Date: April 21, 2010

Recent Posts

Good evening, I too have the same problem. How did you solve it?
I used the mobile's rules to make a simple redirect to another page. But logout does not work. why?