Re: Secure coockie is not available as variable
| From: | Ernest E Vogelsinger | Date: | Tue, 25 Mar 2003 08:11:42 +0000 |
| Subject: | Re: Secure coockie is not available as variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140924@lists.php.net to get a copy of this message | ||
At 03:55 25.03.2003, Alexander Weber said:
--------------------[snip]--------------------
>I send a secure cookie an it should be available as varible
>
>setcookie("pbas_usr", $row[usr], time()+600, "", "", 1);
>
>but the varable is empty. If it send the header without secure flag the
>cookie works well
>
>setcookie("pbas_usr", $row[usr], time()+600);
>
>Is there a special way to read out secure cookies?
--------------------[snip]--------------------
Is your script running under https?
From the docs (http://www.php.net/manual/en/function.setcookie.php):
"secure" indicates that the cookie should only be transmitted over a secure
HTTPS connection. When set to 1, the cookie will only be set if a secure
connection exists. The default is 0.
Sorry if I'm OT here but you didn't mention https in your posting.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/