AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
      • Query
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • Cookie
  • Cron
  • Curl
  • Email
  • Format
  • Handler
  • Locale
  • Profiler
  • Security
  • SFTP

Class Cookie

Cookie handler

Abstract
Namespace:Alo
Package:Statics
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/cookie.php

Methods summary

public static boolean
#set(string$name,string$value,integer|boolean$expire=0,string$path='/',string$domain='',boolean$secure=false,boolean$httponly=true)

Wrapper for PHP's setcookie with

Wrapper for PHP's setcookie with

Parameters

$name
string
$name Cookie name
$value
string
$value Cookie value
$expire
integer|boolean
$expire False if deleting a cookie, 0 for session-length cookie, expiration time in seconds otherwise
$path
string
$path The path the cookie will be available at
$domain
string
$domain The domain the cookie will be available at
$secure
boolean
$secure Whether to only transfer the cookie via HTTPS.
$httponly
boolean
$httponly Whether to only allow server-side usage of the cookie

Returns

boolean
Whether the cookie was set. Always returns false on CLI requests.

Author

Art <a.molcanovas@gmail.com>
public static boolean
#delete(string$name)

Deletes a cookie

Deletes a cookie

Parameters

$name
string
$name Cookie name

Returns

boolean
Whether the cookie was deleted. Always returns false on CLI requests.

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

AloFramework documentation API documentation generated byApiGen 2.8.0