0% found this document useful (0 votes)
35 views1 page

Cookie

This PHP script first attempts to set a cookie called "id" with an empty value that will expire in 1 hour, then overwrites it by setting the same cookie to expire 1 hour ago, so the cookie will be deleted. It then echoes the value of the "id" cookie, which will be empty since it has expired.

Uploaded by

MirunaCatiche
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Cookie

This PHP script first attempts to set a cookie called "id" with an empty value that will expire in 1 hour, then overwrites it by setting the same cookie to expire 1 hour ago, so the cookie will be deleted. It then echoes the value of the "id" cookie, which will be empty since it has expired.

Uploaded by

MirunaCatiche
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Cookies: cookies.

php
!

<?php

//setcookie("id", "", time()+3600;


setcookie("id", "", time()-3600;



echo $_COOKIE['id'];

?>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy