Ethna_Sessionクラスのコンストラクタ
Ethna_Session
__construct
( $ctl, string $appid, string $save_dir)
-
string
$appid: アプリケーションID(セッション名として使用)
-
string
$save_dir: セッションデータを保存するディレクトリ
-
$ctl
セッションを破棄する
bool
destroy
()
セッション値へのアクセサ(R)
mixed
get
(string $name)
セッションIDを取得する
string
getId
()
匿名セッションかどうかを返す
bool
isAnonymous
()
セッションが開始されているかどうかを返す
bool
isStart
([string $anonymous = false])
-
string
$anonymous: 匿名セッションを「開始」とみなすかどうか(default: false)
セッションの正当性チェック
bool
isValid
()
セッションIDを再生成する
bool
regenerateId
([ $lifetime = 0], [ $anonymous = false])
セッションの値を破棄する
bool
remove
(string $name)
セッションを復帰する
void
restore
()
セッション値へのアクセサ(W)
bool
set
(string $name, string $value)
-
string
$name: キー
-
string
$value: 値
セッションを開始する
bool
start
([int $lifetime = 0], [ $anonymous = false])
-
int
$lifetime: セッション有効期間(秒単位, 0ならセッションクッキー)
-
$anonymous