Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » where define my global variable?I have Error

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

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

Page: 1 2
Go to End
Author Topic: 5535 Views
  • bebabeba
    Community Member
    192 Posts

    Re: where define my global variable?I have Error Link to this post

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

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.