Panel/SetCookie

From Garry's Mod
Jump to: navigation, search
 Panel:SetCookie( )

Description

Stores a string in the named cookie using Panel:GetCookieName as prefix.

You can also retrieve and modify this cookie by using the cookie library. Cookies are stored in this format: panelCookieName.cookieName

WARNING

The panel's cookie name MUST be set for this function to work. See Panel:SetCookieName.

Arguments

string cookieName

The unique name used to retrieve the cookie later.

Arguments

string value

The value to store in the cookie. This can be retrieved later as a string or number.
Personal tools
Navigation