国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

directory search
Array Array Helper Benchmarking Benchmarking Class Caching Caching Driver Calendaring Calendaring Class CAPTCHA CAPTCHA Helper Config Config Class Cookie Cookie Helper Database Connecting to your Database Custom Function Calls Database Caching Class Database Configuration Database Forge Class Database Metadata Database Quick Start: Example Code Database Reference Database Utility Class DB Driver Reference Generating Query Results Queries Query Builder Class Query Helper Methods Transactions Date Date Helper Directory Directory Helper Download Download Helper Email Email Class Email Helper Encrypt Encrypt Class Encryption Encryption Library File File Helper File Uploading File Uploading Class Form Form Helper Form Validation Form Validation FTP FTP Class Functions compatibility_functions common_functions HTML HTML Helper HTML Table HTML Table Class Image Manipulation Image Manipulation Class Inflector Inflector Helper Input Input Class Javascript Javascript Class Language Language Class Language Helper Loader Loader Class Migrations Migrations Class Number Number Helper Output Output Class Pagination Pagination Class Path Path Helper Security Security Class Security Helper Session Session Library Shopping Cart Shopping Cart Class Smiley Smiley Helper String String Helper Template Parser Template Parser Class Text Text Helper Trackback Trackback Class Typography Typography Class Typography Helper Unit Testing Unit Testing Class URI URL User Agent XML XML-RPC and XML-RPC Server Zip Encoding Zip Encoding Class XML-RPC and XML-RPC Server Classes XML Helper User Agent Class URL Helper URI Class
characters

Cookie Helper文件包含有助于使用cookie的功能。

  • 加載此助手

  • 可用職能

加載此助手

使用以下代碼加載此助手:

$this->load->helper('cookie');

可用職能

現(xiàn)有下列職能:

set_cookie($name[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = NULL[, $httponly = NULL]]]]]]])

參數(shù):

$ name(混合) - 此函數(shù)可用的所有參數(shù)的Cookie名稱或關(guān)聯(lián)數(shù)組$ value(字符串) -  Cookie值$ expire(int) - 到期時的秒數(shù)$ domain(字符串) -  Cookie域(通常為: .yourdomain.com)$ path(string) -  Cookie路徑$ prefix(string) -  Cookie名稱前綴$ secure(bool) - 是否僅通過HTTPS發(fā)送cookie $ httponly(bool) - 是否隱藏JavaScript

返回類型:

void

  • $ namemixed) - 此函數(shù)可用的所有參數(shù)的Cookie名稱關(guān)聯(lián)數(shù)組

  • $ value字符串) -  Cookie值

  • $ expireint) - 到期前的秒數(shù)

  • $domain字符串) -  Cookie域(通常:.yourdomain.com)

  • $ pathstring) -  Cookie路徑

  • $ prefix字符串) -  Cookie名稱前綴

  • $ securebool) - 是否僅通過HTTPS發(fā)送cookie

  • $ httponlybool) - 是否從JavaScript隱藏cookie

返回類型:void
這個輔助函數(shù)為您提供更友好的語法來設(shè)置瀏覽器cookie。由于此函數(shù)是“CI_Input :: set_cookie()”的別名,因此請參閱[輸入庫](../ libraries / input)以了解其用法的描述。

get_cookie($index[, $xss_clean = NULL])

參數(shù):

$ index(string) -  Cookie名稱$ xss_clean(bool) - 是否將XSS過濾應(yīng)用于返回的值

返回:

如果未找到cookie值或NULL

返回類型:

  • $ indexstring) -  Cookie名稱

  • $ xss_cleanbool) - 是否將XSS過濾應(yīng)用于返回的值

返回:如果未找到cookie值或NULL值
返回類型:混合
這個輔助函數(shù)為您提供更友好的語法來獲取瀏覽器cookie。請參閱[輸入庫](../庫/輸入)供其使用的詳細說明,因為該功能的作用非常相似`CI_Input ::餅干()',但它也將在前面加上`$配置['cookie_prefix ']`你可能已經(jīng)在你的_application / config / config.php_文件中設(shè)置了。

delete_cookie($name[, $domain = ''[, $path = '/'[, $prefix = '']]])

參數(shù):

$ name(字符串) -  Cookie名稱$ domain(字符串) -  Cookie域(通常:.yourdomain.com)$ path(字符串) -  Cookie路徑$ prefix(字符串) -  Cookie名稱前綴

返回類型:

void

  • $ name字符串) -  Cookie名稱

  • $域字符串) -  Cookie域(通常:.yourdomain.com)

  • $ pathstring) -  Cookie路徑

  • $ prefix字符串) -  Cookie名稱前綴

返回類型:void
讓你刪除一個cookie。除非您設(shè)置了自定義路徑或其他值,否則只需要cookie的名稱。

delete_cookie( '名稱');

set_cookie()除此之外,該功能與其不相同,只是它沒有值和過期參數(shù)。您可以在第一個參數(shù)中提交一組值,或者您可以設(shè)置離散參數(shù)。

delete_cookie($ name,$ domain,$ path,$ prefix);

Previous article: Next article: