Overview

Namespaces

  • LucidFrame
    • Console
    • Core
    • File
  • None

Functions

  • __autoloadHelper
  • _addFormData
  • _addHeadScript
  • _addHeadStyle
  • _addJsVar
  • _app
  • _arg
  • _arrayAssoc
  • _asynFileUploader
  • _autoloadDir
  • _baseDirs
  • _baseUrlWithProtocol
  • _breadcrumb
  • _canonical
  • _cfg
  • _cfgOption
  • _cipher
  • _consoleCommand
  • _consoleCommands
  • _consoleTable
  • _cr
  • _css
  • _decrypt
  • _defaultLang
  • _defaultQueryLang
  • _dir
  • _dpr
  • _ds
  • _dump
  • _en2myNum
  • _encrypt
  • _entity
  • _env
  • _fdate
  • _fdatetime
  • _fileHelper
  • _filesize
  • _filterArrayEmpty
  • _fnum
  • _fnumReverse
  • _fnumSmart
  • _fstr
  • _ftimeAgo
  • _g
  • _get
  • _getLang
  • _getLangInURI
  • _getTranslationStrings
  • _h
  • _header
  • _host
  • _hreflang
  • _i
  • _image
  • _img
  • _indent
  • _isAjax
  • _isBot
  • _isHttpPost
  • _isRewriteRule
  • _js
  • _json
  • _lang
  • _langName
  • _langs
  • _loader
  • _mail
  • _meta
  • _metaSeoTags
  • _middleware
  • _minifyHTML
  • _msg
  • _multilingual
  • _notEmpty
  • _nullFill
  • _p
  • _page401
  • _page403
  • _page404
  • _pager
  • _patch
  • _post
  • _postTranslationStrings
  • _pr
  • _protocol
  • _put
  • _queryLang
  • _r
  • _randomCode
  • _redirect
  • _redirect301
  • _requestHeader
  • _requestHeaders
  • _rr
  • _sanitize
  • _schema
  • _script
  • _self
  • _shorten
  • _slug
  • _sqlDate
  • _ssl
  • _t
  • _tc
  • _title
  • _unloader
  • _url
  • _urlLang
  • _validHost
  • _version
  • _view
  • _write
  • _writeln
  • _xss
  • auth_can
  • auth_clear
  • auth_create
  • auth_get
  • auth_getUserInfo
  • auth_isAnonymous
  • auth_isLoggedIn
  • auth_namespace
  • auth_permissions
  • auth_prerequisite
  • auth_role
  • auth_roles
  • auth_set
  • cookie_delete
  • cookie_get
  • cookie_set
  • db_and
  • db_avg
  • db_close
  • db_collation
  • db_commit
  • db_count
  • db_delete
  • db_delete_multi
  • db_disableForeignKeyCheck
  • db_enableForeignKeyCheck
  • db_engine
  • db_error
  • db_errorNo
  • db_escapeString
  • db_extract
  • db_fetch
  • db_fetchArray
  • db_fetchAssoc
  • db_fetchObject
  • db_fetchResult
  • db_find
  • db_findAll
  • db_findBy
  • db_findOneBy
  • db_findOneByOrFail
  • db_findOrFail
  • db_findWithPager
  • db_host
  • db_insert
  • db_insertId
  • db_insertSlug
  • db_max
  • db_min
  • db_name
  • db_numRows
  • db_or
  • db_prefix
  • db_prq
  • db_query
  • db_queryStr
  • db_raw
  • db_rollback
  • db_save
  • db_select
  • db_setCharset
  • db_setForeignKeyCheck
  • db_sum
  • db_switch
  • db_table
  • db_tableHasSlug
  • db_tableHasTimestamps
  • db_transaction
  • db_truncate
  • db_update
  • db_user
  • flash_get
  • flash_set
  • form_checked
  • form_htmlValue
  • form_init
  • form_respond
  • form_selected
  • form_set
  • form_token
  • form_validate
  • form_value
  • route
  • route_contain
  • route_equal
  • route_except
  • route_group
  • route_name
  • route_path
  • route_search
  • route_start
  • route_updateQueryStr
  • route_url
  • session_delete
  • session_get
  • session_set
  • validate_alphaNumeric
  • validate_alphaNumericDash
  • validate_alphaNumericSpace
  • validate_between
  • validate_custom
  • validate_date
  • validate_datetime
  • validate_domain
  • validate_email
  • validate_fileExactDimension
  • validate_fileExtension
  • validate_fileMaxDimension
  • validate_fileMaxHeight
  • validate_fileMaxSize
  • validate_fileMaxWidth
  • validate_integer
  • validate_ip
  • validate_mandatory
  • validate_mandatoryAll
  • validate_mandatoryOne
  • validate_max
  • validate_maxLength
  • validate_min
  • validate_minLength
  • validate_naturalNumber
  • validate_notAllowZero
  • validate_numeric
  • validate_numericDash
  • validate_numericSpace
  • validate_positiveRationalNumber
  • validate_rationalNumber
  • validate_time
  • validate_unique
  • validate_url
  • validate_username
  • validate_wholeNumber
  • validation_addError
  • validation_check
  • validation_get
  • validation_set
  • Overview
  • Namespace
  • Function

Function cookie_set

Send a cookie Convenience method for setcookie()

Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
See: http://php.net/manual/en/function.setcookie.php
Located at helpers/session_helper.php
Parameters summary
string $name The name of the cookie. 'cookiename' is called as cookie_get('cookiename') or $_COOKIE['cookiename']
mixed $value The value of the cookie. This value is stored on the clients computer
integer $expiry = 0 <p>The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. If f set to 0, or omitted, the cookie will expire at the end of the session</p>
string $path = '/' The path on the server in which the cookie will be available on. The default path '/' will make it available to the entire domain.
string $domain = '' The domain that the cookie is available to. If it is not set, it depends on the configuration variable $lc_siteDomain.
boolean $secure = false Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
boolean $httpOnly = false <p>When TRUE the cookie will be made accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript</p>
PHPLucidFrame 3.2 API documentation generated by ApiGen