NetTalk Central

Author Topic: Menu and logout  (Read 4599 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Menu and logout
« on: November 19, 2014, 12:24:28 AM »
When user logout from web site menu does not hide items which should not be visible for users who are not logged in.
This problem is arise cause login procedure is point where logged in user change statusto logged out status.

Is it possible to avoid this and how?

Best regards,

Djordje

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Menu and logout
« Reply #1 on: November 19, 2014, 04:18:03 AM »
You can use SetSessionLevel() to determine which part(s) of menu, and of course the whole menu, to hide or show... On login just put p_web.SetSessionLevel(x), where x is level regarding user(s) level.... And on logout just clear that level, or put p_web.SetSessionLevel(100), for example...


Or use: LoginForm?Logout_btn=yes  on logout

Regards, Oggy.
« Last Edit: November 19, 2014, 04:21:34 AM by oggy »

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Menu and logout
« Reply #2 on: November 19, 2014, 04:15:17 PM »
Thank you Oggy.
Logout is just call to Login so I try to find other way to logout and select home page for non login user.

regards,

Djole

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Menu and logout
« Reply #3 on: November 20, 2014, 12:25:25 AM »
you just need the page to refresh after the person has logged out.
the exact sequence depends on how you are doing things - so maybe ask during the webinar today.

cheers
Bruce


oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Menu and logout
« Reply #4 on: November 20, 2014, 02:14:53 AM »
Hi Djole, is this what you want to achieve?
Look at sample site: bilancahelp.dyndns-ip.com:88
user: admin
password: pass
Regards, Oggy

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Menu and logout
« Reply #5 on: November 20, 2014, 03:17:13 PM »
Thank you Oggy.
Not exactly, cause there are options of menu that are visible to non logged in users. Today during webinar #44 Bruce show two nice solution for my problem.

Thank you once again Oggy.

Best regards,

Djordje Radovanovic
« Last Edit: November 20, 2014, 09:56:38 PM by Bruce »