Cookies with "PHP3"

They have: 32 posts

Joined: Jan 2001

Hi,
I need to obtain a cookie value and I dont know how to do it with php3. Sad
Does anybody knows how? Wink
Thanx in advance. Cheers!

They have: 17 posts

Joined: Jan 2002

Hi..........

To set a cookie in PHP 3 you would do this.....

setcookie(cookie_name, cookie_value, cookie_expire_time, cookie_path,
cookie_domain, cookie_secure);

Remember this must be placed before your tag because the cookie is set in the HTTP header

To call a value from the cookie in PHP 3, all you have to do is call the cookie_value_name.......

It is automaticly, sent to the server and decoded, with each new request....

to kill a cookie ( delete it off a users computer) all you must do is set "0" as the expired_cookie_time.....

F!

They have: 32 posts

Joined: Jan 2001

thank you very much F!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.