INF5270-cookie test\n"; echo "

See ya l8r!

\n"; } else { echo "INF5270-cookie test\n"; echo "

Love ya, {$_COOKIE['bruker']}!!

\n"; setcookie('bruker','',time()-3600); /*sletter cookie*/ } /***************************************************************** kuusi 304>telnet www.ifi.uio.no 80 Trying 129.240.64.16... Connected to www.ifi.uio.no. Escape character is '^]'. GET /~inf5270/v2006/eksempel/cookie.php HTTP/1.1 Host: www.ifi.uio.no HTTP/1.1 200 OK Date: Wed, 17 Mar 2004 12:58:19 GMT Server: Apache/1.3.29 (Unix) mod_perl/1.29 PHP/4.3.4 X-Powered-By: PHP/4.3.4 Set-Cookie: bruker=gisle; expires=Wed, 17-Mar-2004 13:58:19 GMT Connection: close Transfer-Encoding: chunked Content-Type: text/html 38 INF5270-cookie test

See ya l8r!

0 Connection closed by foreign host. kuusi 304>telnet www.ifi.uio.no 80 Trying 129.240.64.16... Connected to www.ifi.uio.no. Escape character is '^]'. GET /~inf5270/v2006/eksempel/cookie.php HTTP/1.1 Host: www.ifi.uio.no Cookie: bruker=gisle; HTTP/1.1 200 OK Date: Wed, 17 Mar 2004 12:58:30 GMT Server: Apache/1.3.29 (Unix) mod_perl/1.29 PHP/4.3.4 X-Powered-By: PHP/4.3.4 Set-Cookie: bruker=deleted; expires=Tue, 18-Mar-2003 13:00:52 GMT Connection: close Transfer-Encoding: chunked Content-Type: text/html 3c INF5270-cookie test

Hello world, gisle!!

0 Connection closed by foreign host. kuusi 304> *****************************************************************/ ?>