Cookie::put (method)

Return to Knowledgebase

Purpose

Puts a cookie on the user's system

Location

users/classes/Cookie.php

Parameters

This function does not take any arguments

Example

Cookie::put('UserSpice', 'thisIsCookieData' , Config::get('remember/cookie_expiry'));

Further Documentation:

Puts a cookie on the user's system.