Garry's Mod Wiki


void 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.

Page Links

Special Pages



Render Time: 29ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 13