Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs For Class CookieUtil

Class: CookieUtil

Source Location: /pnobjlib/CookieUtil.class.php

Class Overview


CookieUtil

Methods


Inherited Variables

Inherited Methods


Class Details

[line 20] CookieUtil



[ Top ]

Class Methods


method deleteCookie [line 79]

bool deleteCookie( string $name)

Delete given cookie can be called multiple times, but must be other output is sent to browser.



Tags:

author:  Drak


Parameters:

string   $name   nmame of cookie

[ Top ]

method getCookie [line 61]

mixed getCookie( string $name, [bool $signed = true], [bool $default = ''])

Get a cookie



Tags:

return:  cookie value as string or bool false
author:  Drak


Parameters:

string   $name   name of cookie
bool   $signed   override system setting to use signatures
bool   $default   default value

[ Top ]

method setCookie [line 35]

bool setCookie( string $name, [string $value = ''], [int $expires = null], [string $path = null], [string $domain = null], [bool $secure = null], [bool $signed = true])

Set a cookie value



Tags:

author:  Drak


Parameters:

string   $name   name of cookie
string   $value  
int   $expires   unix epoch dat for expiry
string   $path  
string   $domain   domain must be at least .domain.tld
bool   $secure   to set if cookie must only be set over existing https connection
bool   $signed   override system setting to use signatures

[ Top ]

Packages:

Files:

Classes: