Posted by: Sourav | March 1, 2011

Cookies in PHP


<html>
    <head>
        <title>
            Cookies
        </title>
    </head>
    <body>
        <?php setcookie(‘test’,1000,time()+(60*60*24*7)); ?>
    </body>
</html>

To see the stored cookie you have just created you need to go to option – privacy – remove individual cookies

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: