Garry's Mod Wiki

Panel:SetCookie

  Panel:SetCookie( string cookieName, string value )

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. Cookies are stored in this format:

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

Arguments

1 string cookieName
The unique name used to retrieve the cookie later.
2 string value
The value to store in the cookie. This can be retrieved later as a string or number.