? Session 擴展
簡介 ?
Bejson.com
PHP Manual
Session 擴展
Session Handling
Session Handling
簡介
安裝/配置
需求
安裝
運行時配置
資源類型
預(yù)定義常量
范例
基本用法
傳送會話ID
自定義會話管理器
Session 上傳進度
會話和安全
會話管理基礎(chǔ)
和會話安全相關(guān)的配置項
Session 函數(shù)
session_abort
— Discard session array changes and finish session
session_cache_expire
— 返回當(dāng)前緩存的到期時間
session_cache_limiter
— 讀取/設(shè)置緩存限制器
session_commit
— session_write_close 的別名
session_create_id
— Create new session id
session_decode
— 解碼會話數(shù)據(jù)
session_destroy
— 銷毀一個會話中的全部數(shù)據(jù)
session_encode
— 將當(dāng)前會話數(shù)據(jù)編碼為一個字符串
session_gc
— Perform session data garbage collection
session_get_cookie_params
— 獲取會話 cookie 參數(shù)
session_id
— 獲取/設(shè)置當(dāng)前會話 ID
session_module_name
— 獲取/設(shè)置會話模塊名稱
session_name
— 讀取/設(shè)置會話名稱
session_regenerate_id
— 使用新生成的會話 ID 更新現(xiàn)有會話 ID
session_register_shutdown
— 關(guān)閉會話
session_reset
— Re-initialize session array with original values
session_save_path
— 讀取/設(shè)置當(dāng)前會話的保存路徑
session_set_cookie_params
— 設(shè)置會話 cookie 參數(shù)
session_set_save_handler
— 設(shè)置用戶自定義會話存儲函數(shù)
session_start
— 啟動新會話或者重用現(xiàn)有會話
session_status
— 返回當(dāng)前會話狀態(tài)
session_unset
— 釋放所有的會話變量
session_write_close
— Write session data and end session
SessionHandler
— The SessionHandler class
SessionHandler::close
— Close the session
SessionHandler::create_sid
— Return a new session ID
SessionHandler::destroy
— Destroy a session
SessionHandler::gc
— Cleanup old sessions
SessionHandler::open
— Initialize session
SessionHandler::read
— Read session data
SessionHandler::write
— Write session data
SessionHandlerInterface
— The SessionHandlerInterface class
SessionHandlerInterface::close
— Close the session
SessionHandlerInterface::destroy
— Destroy a session
SessionHandlerInterface::gc
— Cleanup old sessions
SessionHandlerInterface::open
— Initialize session
SessionHandlerInterface::read
— Read session data
SessionHandlerInterface::write
— Write session data