Function zp_setCookie
Sets a cookie both in the browser cookies and in $_SESSION[]
string |
$name |
The 'cookie' name |
string |
$value |
The value to be stored |
timestamp |
$time = NULL |
The time delta until the cookie expires |
string |
$path = NULL |
The path on the server in which the cookie will be available on |
boolean |
$secure = false |
true if secure cookie |
boolean |
$httponly = false |
true if access to this cookie should only be allowed via http (e.g. no access to JS etc.). Requires browser support though. |