Help with cookies

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
Joethepoe
Forum Newbie
Posts: 4
Joined: Thu Aug 06, 2009 6:51 pm

Help with cookies

Post by Joethepoe »

Ok I need to set a cookie then use it straight after, which I know is not possible. Is there anyway this can be done?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Help with cookies

Post by jackpf »

You mean without reloading the page? If so, why not just use the value you assigned to the cookie?

Cookies aren't sent back until the next page request...since obviously they haven't been set yet.
Post Reply