conditional cookie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amandeep1
Forum Newbie
Posts: 1
Joined: Sun Jul 11, 2010 12:44 am

conditional cookie

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: conditional cookie

Post by requinix »

Fix your code?

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