API/functions/bb cookie

From bbPulp

Jump to: navigation, search
Function
bb_cookie
File: /bb-includes/pluggable.php
Class: none
Pluggable: yes
Introduced: revision 335
Deprecated: no

[edit] Description

void bb_cookie ( string $name, mixed $value[, integer $expires = 0] )

Sets a cookie.

If there is no expiry specified then the default is to expire in 604800 seconds (7 days) from the current time.

The cookies path is set from the bbPress option "cookiepath". The cookies domain is set from the bbPress option "cookiedomain" if it is set.

[edit] Parameters

name
The name of the cookie.
value
The value being stored in the cookie.
expires
The time in seconds from epoch at which the cookie will expire.

[edit] Plugins that redefine this function

None

Personal tools