NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on November 19, 2014, 12:24:28 AM

Title: Menu and logout
Post by: Djordje Radovanovic 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
Title: Re: Menu and logout
Post by: oggy 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.
Title: Re: Menu and logout
Post by: Djordje Radovanovic 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
Title: Re: Menu and logout
Post by: Bruce 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

Title: Re: Menu and logout
Post by: oggy 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
Title: Re: Menu and logout
Post by: Djordje Radovanovic 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