Jump to content


Photo

cookies


  • Please log in to reply
5 replies to this topic

#1 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 15 August 2006 - 07:44 PM

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.


#2 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 15 August 2006 - 07:58 PM

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

#3 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 15 August 2006 - 08:06 PM

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.

#4 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 16 August 2006 - 10:40 AM

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?


#5 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 August 2006 - 11:50 AM

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.

#6 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 16 August 2006 - 01:07 PM

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users