note 38067 rejected from function.session-set-cookie-params by vincent
| From: | vincent@php.net | Date: | Sun, 07 Dec 2003 09:18:03 +0000 |
| Subject: | note 38067 rejected from function.session-set-cookie-params by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61585@lists.php.net to get a copy of this message | ||
Note Submitter: valfor@silphix.com
----
Personal comment on 4th parameter; "bool secure".
void session_set_cookie_params ( int lifetime [, string path [, string domain [, bool secure]]])
Neither 'TRUE' nor "TRUE" works.
ONLY int 1 seems to be accepted to make this parameter "true". return value is boolean
[true] though.
ex:
session_set_cookie_params( 10800, '/', 'mydomain.com', 1 );
Am I missing out on something? or is this how booleans work? ( yes, I've read the booleans
section... )
*1bit smarter than yesterday!*
Valfor