Jump to content

Archived

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

otuatail

cookies

Recommended Posts

Hi
I've tried in the past to set a cookie on my own PC with a basic php page

<?
setcookie("mysite","here");
?>

Tried without the quotes a s well. Is there anything else i need to do?

Paul.

Share this post


Link to post
Share on other sites
Have you read: http://php.net/setcookie ? It might be able to give you some more information on cookies.

Share this post


Link to post
Share on other sites
Yes I have been there but as all other arguments including Expire date are optional
then this should leave a cookie untill the hard disk is formated or windows re-installed.
Is this not the case? I want a perminatnt (where posible) cookie.

Share this post


Link to post
Share on other sites
I have managed the problem of setting my cookies. I was looking for the cookie on my local PC and could not find it. But it is working so were on the hard disk is it?

Share this post


Link to post
Share on other sites
What browser are you using? If its Firefox goto Tools > Options > Privacy > Cookie Tab > View Cookies. Now in the search box type in localhost or the name the of the cookie, and it'll try to find the cookie.

For IE(7) you need to goto Tools > Internet Options > Browsing History Settings button > View Files. Now click the Types column so the grey arrow is pointing upwards in the Temporary Internet Files window. Now scroll down until you find a bunch of Text Files. These should be your cookies.

For Opera  goto Tools > Preferences... > Advanced Tab > Cookies > Manage cookies. Again use the search bar to sift through the cookies, by typing localhost or the name of the cookie.

For any other browser you might want to consult their documentation.

Share this post


Link to post
Share on other sites
Thanks for all that. I thought all cookies where in docs and settings. My problem is I am being targeted by someone. I think I know. What I wanted was to place a cookie on there PC and then I could confrunt them "Get out of that son"

Desmond.

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.