Garry's Mod Wiki

Panel:SetCookie

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

Page Links


Special Pages


Wikis

?

Render Time: 29ms

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