Garry's Mod Wiki


  Panel:SetCookie( string cookieName, string value )


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:

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


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.