Garry's Mod Wiki

Panel:GetCookie

string Panel:GetCookie( string cookieName, string default )

Description

Gets the value of a cookie stored by the panel object. This can also be done with cookie.GetString, using the panel's cookie name, a fullstop, and then the actual name of the cookie.

Make sure the panel's cookie name has not changed since writing, or the cookie will not be accessible. This can be done with Panel:GetCookieName and Panel:SetCookieName.

Arguments

1 string cookieName
The name of the cookie from which to retrieve the value.
2 string default
The default value to return if the cookie does not exist.

Returns

1 string
The value of the stored cookie, or the default value should the cookie not exist.

Page Links


Special Pages


Wikis

?

Render Time: 41ms

DB GetPage 8
Generate Html 4
SaveChanges (1) 15
Render Body 0
Render Sidebar 12