downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

session_unregister> <session_start
[edit] Last updated: Fri, 25 May 2012

view this page in

session_status

(PHP >=5.4.0)

session_status現在のセッションの状態を返す

説明

int session_status ( void )

session_status() を使うと、現在のセッションの状態を取得できます。

返り値

  • セッションが無効な場合は PHP_SESSION_DISABLED
  • セッションが有効だけれどもセッションが存在しない場合は PHP_SESSION_NONE
  • セッションが有効で、かつセッションが存在する場合は PHP_SESSION_ACTIVE

参考

  • session_start() - 新しいセッションを開始、あるいは既存のセッションを再開する


add a note add a note User Contributed Notes session_status
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites