NetTalk Central

Author Topic: menu items remain after logout  (Read 4443 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
menu items remain after logout
« on: August 04, 2014, 12:02:52 PM »
I have a NT 7.39 app (C9.1.11129) with two drop down menu items that are set "user must be logged in".  Upon logging out these menu items remain.  I would like these to go away immediately upon log out.  Pressing F5 (refresh) causes then to go away but I would think this should be automatic.  I have also tried using the condition:  p_web.GetSessionLoggedIn() = 1 but this does not solve the issue.  Have I missed something here?

Jeff

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: menu items remain after logout
« Reply #1 on: August 04, 2014, 04:17:14 PM »
you should logout to a page that does not have a header (menu). Have a look at the examples.

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: menu items remain after logout
« Reply #2 on: August 04, 2014, 05:03:54 PM »
Kevin,

     I believe I am logging out to a page without a header (menu), as I logout to the LoginForm, as seen in the attached image logout.png.  Still, I see the two menu items "Data" and "Forms".  See the attached image afterlogout.png. 
     I changed this to logout to the IndexPage and get the same results.  Any other thoughts?

Thanks,

Jeff

[attachment deleted by admin]

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: menu items remain after logout
« Reply #3 on: August 04, 2014, 06:20:32 PM »
I think there is a template option to add a header\footer to every page and this may be part of your problem. But if you go to a logout Are you sure page Yes/No first before returning to the login page you will be able to set the loggedout variable before it opens the login page.

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: menu items remain after logout
« Reply #4 on: August 04, 2014, 06:26:06 PM »
Kevin,

     I'll look into your suggestion, but for now I have the effect I want using the following condition:

p_web.GetSessionLoggedIn() = 1 and p_web.PageName <> p_web.site.LoginPage

on the two menu items.  Seems to be working and I'll do some more testing.

Thanks,

Jeff