You are here: Re: Understanding Cookies « PHP Programming Language « IT news, forums, messages
Re: Understanding Cookies

Posted by Andy Hassall on 10/29/36 11:31

On Tue, 08 Nov 2005 01:51:47 GMT, "Mike" <ampeloso@verizon.net> wrote:

>Heres a perfect example;
><?php
>$value = 'something from somewhere';
>setcookie("TestCookie", $value, time()+3600); /* expire in 1 hour */
>?>
>Can be found at:(My Domain)
>http://www.ampsoft.com/B.php
>
>I leave the browser open and check my Cookies folder and ...Nothing .

That works for me, both on Firefox 1.5RC1 and Internet Explorer 6.

A cookie is set and stored; contents of the file from IE is:

TestCookie
something+from+somewhere
www.ampsoft.com/
1024
3124430464
29746191
1793278832
29746183
*

Add the following:

print "<pre>";
var_dump($_COOKIE);
print "</pre>";

Then you will be able to see what cookies the browser has accepted and sent
back.

If you're not getting anything, then you have a browser configuration problem.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация