|
Posted by Seansan on 03/04/07 00:09
Rik wrote:
> Seansan <sean115=at@=reeve.nl> wrote:
>>>> When I run the following in PHP then two cookies are set.
>>>>
>>>> ini_set('session.name', 'session-1');
>>>> session_start();
>>>> setcookie('session-2', '');
>>>>
>>>> Both cookies are being sent to the client, and then to the server (I am
>>>> sure), but they are not available in $_COOKIE (this array is empty).
>> Thank you for your answer. setcookie() has been called correctly and
>> with all the arguments. (this was just a simple example).
>>
>> The cookies are stored on the client, and also sent to the server. I
>> have tested with firefox and IE. There is something happening
>> serverside that either changes the COOKIE value, doesnt allow it to be
>> set, of has another hash where it is stored.
>
> First of all, just to make sure, you do know that it will only be in the
> $_COOKIE array on a second or later request?
>
> Secondly, I'd like to know how you are so sure the cookie is sent back.
> How did you check that? (FF->LiveHTTPHeaders, MSIE->Fiddler ?)
>
> On Apache, you can check what request headers make it to the script with
> apache_request_headers(), is the cookie header there?
> First of all, just to make sure, you do know that it will only be in
the $_COOKIE array on a second or later request?
Yes
> Secondly, I'd like to know how you are so sure the cookie is sent
back. How did you check that? (FF->LiveHTTPHeaders, MSIE->Fiddler ?)
FF->LiveHTTPHeaders (I see request headers)
>
> On Apache, you can check what request headers make it to the script
with apache_request_headers(), is the cookie header there?
apache_request_headers() cookies dont make it to the script.
Rik, I must say that I have found out some more information and it seems
that the PLESK controlpanel is blocking COOKIES. I am using the
sitepreview (php program) and I have just read that globalvars are not
passed. This probably has something to do with it.
http://forums.theplanet.com/index.php?showtopic=54222
Now wish how I can circumvent either through PHP or call the IP address
directly
2 cookies
Name sessauth
Value c41187720babfefe285d3a34e84a7dc2cecbb3b3
Host 85.17.55.35
Path /sitepreview/http/domain.nl/mail/
Secure Yes
Expires At End Of Session
Name sessid
Value 03d181a76be98a1bc8906de63006a608
Host 85.17.55.35
Path /
Secure Yes
Expires At End Of Session
Navigation:
[Reply to this message]
|