You are here: Re: Reading a cookie « PHP Programming Language « IT news, forums, messages
Re: Reading a cookie

Posted by Jerim79 on 02/08/07 21:22

On Feb 7, 4:45 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> william.clarke <william.cla...@gmail.com> wrote:
> > I'm not clear on one thing, why don't you want to use setcookie to
> > create the initialcookie
>
> Please quote and/or reply correctly. I myself have said several times just
> setting thecookiewith PHP is easier. It's the OP that doesn't want it
> due to some reason either unknown or unconvincing to us...
>
> > Sorry if I'm totally missing the point here.
>
> Long story, long thread :P
>
> --
> Rik Wasmus

I work for someone who defines my duties. I don't necessarily get to
decide how things are done. I was finally able to sell him on an admin
page for setting the cookie first. That will work, problem solved.
Thank you everyone for the help.

This next part is purely for discussion. The example that my boss
points to is that once a cookie is set, you close the browser. Open
the browser back up, and the browser reads the cookie from somewhere.
There must be a seperate "method" for reading a cookie. You don't have
to set the cookie everytime, just the first time. It isn't always "set
cookie"/"read cookie;" sometimes it is just "read cookie." So let's
skip over the initial setting of a cookie. How does the PHP form read
the cookie on subsequent trips? I read up a little on Firefox, and I
do see where Firefox stores all the cookies and passes the cookies
along automatically, so there doesn't seem to be a way to control
this. I haven't been able to find out where the cookies are stored or
in what format.

My boss swears they were able to manually create a cookie previously
and have PHP read it, he just doesn't remember how they did it. (When
I say manually create a cookie, I mean create a text document on your
computer named something like printer.txt and type: printer=1 into it.
Then create a PHP script that opens that file on your computer and
reads it.) I did this previously with JavaScript, which I understand
is a client side language, and PHP is server side.

Anyway, problem solved. I feel that I have a better understanding of
cookies and how they work, especially under Firefox.

 

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

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