|
Posted by Rik on 02/07/07 19:03
Jerim79 <mylek@hotmail.com> wrote:
> On Feb 7, 12:11 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
>> Jerim79 <m...@hotmail.com> wrote:
>> > When you say "set thecookie" I take that to mean setcookie(). I don=
't
>> > want setcookie(). I want to create thecookiemanually. So I can
>> > create thecookiecalled "printer" manually and use
>> > $_COOKIE['printer'] to read it?
>>
>> Yup, manually, with javascript, with an arbitrary application, no =
>> matter.
>> As long as a cookie is sent PHP can read it. It does not matter how =
>> this cookiecame to be, just that it's there.
>>
>
> When you say "sent" what are you referring to?
Read up on how cookies work. A server has to get the (contents of the) =
cookie, how else could you make any decisions on the server based on a =
cookie? When requesting a page from a server, browsers can send the =
contents of available cookies in the header of the HTTP(S) request.
> Lets say I create a file on my computer called "printer". Inside that
> file I manually type something like: printer=3DA. How would I send tha=
t
> cookie to the PHP form?
The browser takes care of it, and the way and where it stores the cookie=
s =
is hence browser dependant. So to know how to manually create one and =
where to store it you'll have to consult the manual of the browser.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|