UNB Components Code Reference

UnbSession::SetCookie method

Sends a cookie to the browser.

public static function UnbSession::SetCookie ($name, $value = null, $expire = -1);

Parameters

name
(string) Cookie name
value  –  optional, default: null
(string) Cookie data, or null or empty to delete the cookie
expire  –  optional, default: -1
(int) UNIX timestamp of the time to expire the cookie, or 0 for a session cookie, or -1 for infinite lifetime

Member of class: UnbSession

Implementation file: session.class.php, line 286

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.