class

ActionController::Cookies

Inherits Reference < Object

Constants

MAX_COOKIE_SIZE = 4096

Constructors

Instance methods

[](name : String) : String | Nil
Source
[]=(name : String, value : String) : Cookies
Source
[]?(name : String) : String | Nil
Source
delete(name : String, path : String = "/", domain : String | Nil = nil) : Nil

Удаляет cookie у клиента (значение "" + expires в прошлом).

Source
encrypted
Source
has_key?(name : String) : Bool
Source
permanent
Source
set(name : String, value : String, expires : Time | Nil = nil, path : String = "/", domain : String | Nil = nil, secure : Bool = false, httponly : Bool = false, same_site : Symbol | Nil = nil) : Nil

Устанавливает cookie с опциями (Rails-семантика cookies[]= c хешем опций): expires/path/domain/secure/httponly/same_site.

Source
signed
Source