Jump to content

Archived

This topic is now archived and is closed to further replies.

Cloud9247

Editing Cookies

Recommended Posts

Well,

I made an edit profile script for my membership system on my site, and when you edit your profile, it says ""Your profile has been edited successfully", but when I go back to the edit profile script, it shows the cookies in their old form, here is what I have tried:

$_COOKIE['cookie'] = $_POST['post'];

It works, yes, but it does not appear editted till you log out, and log back in. Can someone please help me with this problem?!

Share this post


Link to post
Share on other sites
do you not have to use setcookie(); to actually alter cookie values???

Share this post


Link to post
Share on other sites
In order to edit a cookie you will have to reset it using the setcookie function. You cannot do $_COOKIE['cookiename'] = 'something';
to reset a cookie.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.