PHP creating cookies setting and deleting

Cookie is removed. You can check this by going to Reading Cookies page to check.
setcookie ("Plus2netCookie", "", time() - 3600);
setcookie ("Plus2netCookie[zip]", "", time() - 3600);
setcookie ("Plus2netCookie[city]", "", time() - 3600);
setcookie ("Plus2netCookie[state]", "", time() - 3600);
setcookie ("Plus2netCookie[name]", "", time() - 3600);
Here time() gives us the time elapsed in seconds between current time and Unix Epoch (January 1 1970 00:00:00 GMT). From this value we are subtracting 3600 seconds to give a past time as expire time for the cookie.

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer