国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

Cookies

2018-01-09 17:51 更新

開(kāi)發(fā)中我們可能需要使用cookies來(lái)緩存一些信息,cookies類庫(kù)提供了一系列的操作

  • 設(shè)置   -   set($name, $value, $expire=0)
    /** 設(shè)置cookie * @param String $name cookie name * @param mixed $value cookie value 可以是字符串,數(shù)組,對(duì)象等 * @param int $expire 過(guò)期時(shí)間 */
  • 讀取   -   get($name)
    /** 讀取cookie * @param String $name cookie name * @return mixed cookie value */
  • 更新   -   update($name, $value)
    /** 更新cookie,只更新內(nèi)容,如需要更新過(guò)期時(shí)間請(qǐng)使用set方法 * @param String $name cookie name * @param mixed $value cookie value * @return boolean */
  • 清除   -   clear($name)
    /** 清除cookie * @param String $name cookie name */
  • 設(shè)置前綴   -   setPrefix($prefix)
    /** 設(shè)置前綴 * @param String $prefix cookie prefix */
  • 設(shè)置過(guò)期時(shí)間   -   setExpire($expire)
    /** 設(shè)置過(guò)期時(shí)間 * @param int $expire cookie expire */
  • 加密/解密數(shù)據(jù)   -   authcode($string, $operation = 'DECODE')
    /** 加密/解密數(shù)據(jù) * @param String $str 原文或密文 * @param String $operation ENCODE or DECODE * @return String 根據(jù)設(shè)置返回明文活密文 */

可使用M()方法操作該類,設(shè)置好cookie后可以按F12開(kāi)啟瀏覽器調(diào)試信息中看到此cookie

實(shí)例




以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)