Write

Navigation:  Development > Function Reference > Module > Cookie >

Write

Previous pageReturn to chapter overviewNext page

Write a Cookie
 

App::Module('Cookie')->Write(Name, Value);
 

 

Parameter

Type

Description

Name

Mandatory

Name of the Cookie

Value

Mandatory

Value to write

 

See bellow examples:

 
// Write a cookie
App::Module('Cookie')->Write('username''jhon');