Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

where define my global variable?I have Error


Go to End


9 Posts   7789 Views

Avatar
bebabeba

Community Member, 193 Posts

5 December 2008 at 12:31am

I want create in homepage a login section. If the user is a privilege user, he can see 2 reserved page.
So I thought to use a global variable inside login function. If this variable is 1 the user is privileged and he can see all menu (with 2 reserved page.) otherwise not.
the problem is that when user is logged I see the name of 2 reserved page in menu. If I clich on that page, I see content of page but in my menu the name of reserved page disappear. User seems log off. I try use session but something is wrong..

Go to Top