Page 1 of 1

conditional cookie

Posted: Sun Jul 11, 2010 12:46 am
by amandeep1
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

Re: conditional cookie

Posted: Sun Jul 11, 2010 2:55 am
by requinix
Fix your code?

I'd help more but you didn't post any code to look at.