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.
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

mert.sincan
Posts: 5281
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!!!

mert.sincan
Posts: 5281
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 4 guests