Garry's Mod Wiki

Garry's Mod Wiki

  cookie.Set( string key, string value )

Description

Creates / updates a cookie in the Database.

Arguments

1 string key
The name of the cookie.
2 string value
The data stored in the cookie.




Example

Sets & prints out a cookie's value.

cookie.Set('My-Cookie','Hello World') print('Set My-Cookie') print('My-Cookie:',cookie.GetString('My-Cookie'))
Output:
Set My-Cookie My-Cookie: Hello World

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...