After the log out, when I log in the menu continues showing the last menu item selected
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 6
- Joined: 04 Mar 2015, 19:15
After the log out, when I log in the menu continues showing the last menu item selected
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
We add the id of selected items to cookie. Therefore, I think you can use PF('menuWidgetVar').clearMenuState() after clicking "Logout" button. Exp;
in template.xhtml
<pi:menu widgetVar="IcarusMenu"> ..
in template.xhtml
Code: Select all
function clearCookie() {
var $this = PF('IcarusMenu');
if($this) {
$this..clearMenuState();
}
}
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests