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 or int) 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 281

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.