conditional cookie
Posted: Sun Jul 11, 2010 12:46 am
I am having trouble setting up cookies. On my website I have a login system. I want to set a certain cookie if a user has permission. So for example
If(user == moderator)
setcookie
But apparently my cookies are getting set up even if the user is not a moderator. How can I achieve this?
Thanks
If(user == moderator)
setcookie
But apparently my cookies are getting set up even if the user is not a moderator. How can I achieve this?
Thanks