Re: Cookies
| From: | Chris Shiflett | Date: | Mon, 01 Mar 2004 16:38:14 +0000 |
| Subject: | Re: Cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179181@lists.php.net to get a copy of this message | ||
--- Paul Higgins <developer_paul_php@hotmail.com> wrote:
> Miva uses cookies, which is fine. However, the Miva pages would be
> accessed by my PHP pages on the website. Therefore, the cookies have
> nowhere to go.
You can set cookies on the client with the Set-Cookie header or with the
setcookie() function.
> They are not placed on my client, because in this case my web server
> is the client.
Your Web server is acting as both a client and server. You can pass along
any cookies you want.
> Can I trick the Miva pages to believe that I am in fact accessing a
> cookie? By possibly using headers?
I assume that accessing == sending. If so, then yes, you can do this, too,
but I'd need to know how you are sending the requests to Miva. If you're
making the connection and sending the requests yourself, you can send a
cookie by including this header:
Cookie: foo=bar
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming mid-2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/