After the log out, when I log in the menu continues showing the last menu item selected

Post Reply
crismgarcia
Posts: 6
Joined: 04 Mar 2015, 19:15

28 Jun 2017, 14:40

After the log out, when I log in the menu continues showing the last menu item selected

User avatar
aragorn
Posts: 3156
Joined: 29 Jun 2013, 12:38

29 Jun 2017, 08:01

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

Code: Select all

function clearCookie() {
   var $this = PF('IcarusMenu');
   if($this) {
      $this..clearMenuState();
   }
}
<pi:menu widgetVar="IcarusMenu"> ..

crismgarcia
Posts: 6
Joined: 04 Mar 2015, 19:15

29 Jun 2017, 14:38

Thanks!!!

User avatar
aragorn
Posts: 3156
Joined: 29 Jun 2013, 12:38

29 Jun 2017, 14:59

You're welcome!

Post Reply

Return to “Icarus”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest