« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for lifetime (0.001 sec.)
session_set_cookie_params — セッションクッキーパラメータを設定する | PHP 8.3 13349
session_set_cookie_params (PHP 4, PHP 5, PHP 7, PHP 8) session_set_cookie_params — セッションクッキーパラメータを設定する 説明 function session_set_cookie_params ( int $lifetime_or_options , ? string $path = null , ? string $domain = null , ... null , ? bool $httponly = null ): bool PHP 7.3.0 以降で使える代替のシグネチャ: function session_set_cookie_params ( array $lifetime_or_options ): bool ファイル php.ini で定義されたクッキーパラメータを設定します。 この関数の効果が持続するのは、スクリプトの ... ルする必要があります。 この関数は、PHP の ini 設定の値を実行時に上書きします。値の取得には ini_get() が使えます。 パラメータ lifetime_or_options 最初のシグネチャを使う場合、セッションクッキーの 有効期限 。秒数で定義します。 二番目のシグネチャを使う場合、 以 ... 下に示すキーを持つことができる連想配列です。 lifetime , path , domain , secure , httponly , partitioned および samesite . 対応する値は、キーと同じ名前のパラメータで説明されてい ...
https://man.mtool.work/php/8.3/function.session-set-cookie-params.html
SessionHandlerInterface::gc — 古いセッションを削除する | PHP 8.3 11461
SessionHandlerInterface::gc (PHP 5 >= 5.4.0, PHP 7, PHP 8) SessionHandlerInterface::gc — 古いセッションを削除する 説明 public function SessionHandlerInterface::gc ( int $max_lifetime ): int | false 有効期限を過ぎたセッションを削除します。 s ... ession.gc_divisor 、 session.gc_probability および session.gc_maxlifetime の設定に基づいて、 session_start() からコールされます。 パラメータ max_lifetime 直近の max_lifetime 秒の間に更新されていな ...
https://man.mtool.work/php/8.3/sessionhandlerinterface.gc.html
session_get_cookie_params — セッションクッキーのパラメータを得る | PHP 8.3 10826
session_get_cookie_params (PHP 4, PHP 5, PHP 7, PHP 8) session_get_cookie_params — セッションクッキーのパラメータを得る 説明 function session_get_cookie_params (): array セッションクッキーのパラメータを取得します。 パラメータ この関数にはパ ... ータはありません。 戻り値 現在のセッションクッキーの情報を配列として返します。 この配列には次のような項目が含まれています。 "lifetime" - クッキーの生存期間(lifetime) "path" - 情報が保存されている場所のパス "domain" - クッキーのドメイン "secure" - クッキーは ... に、"partitioned" エントリが追加されました。 7.3.0 返される配列に、"samesite" エントリが追加されました。 参考 session.cookie_lifetime session.cookie_path session.cookie_domain session.cookie_secure session.cookie_httponly session.cookie_partitioned session ...
https://man.mtool.work/php/8.3/function.session-get-cookie-params.html
SessionHandler::gc — 古いセッションを削除する | PHP 8.3 10569
SessionHandler::gc (PHP 5 >= 5.4.0, PHP 7, PHP 8) SessionHandler::gc — 古いセッションを削除する 説明 public function SessionHandler::gc ( int $max_lifetime ): int | false 有効期限を過ぎたセッションを削除します。PHP がセッションを開始したとき ... 加したりできます。 このメソッドに関する詳細は、 SessionHandlerInterface::gc() のドキュメントを参照ください。 パラメータ max_lifetime 直近の max_lifetime 秒の間に更新されていないセッションを削除します。 戻り値 成功時には、削除されたセッションの数を返します ...
https://man.mtool.work/php/8.3/sessionhandler.gc.html
runkit7_object_id — Return the integer object handle for given object | PHP 8.3 8544
runkit7_object_id (PECL runkit7 >= Unknown) runkit7_object_id — Return the integer object handle for given object 説明 function runkit7_object_id ( object $obj ): int This function is equivalent to spl_object_id() . This function returns a ... unique identifier for the object. The object id is unique for the lifetime of the object. Once the object is destroyed, its id may be reused for other objects. This behavior is similar to spl_objec ...
https://man.mtool.work/php/8.3/function.runkit7-object-id.html
The Componere\Patch class | PHP 8.3 8407
The Componere\Patch class (Componere 2 >= 2.1.0) はじめに The Patch class allows the programmer to change the type of an instance at runtime without registering a new Definition When a Patch is destroyed it is reverted, so that instances th ... at were patched during the lifetime of the Patch are restored to their formal type. クラス概要 final class Componere\Patch extends Componere\Abstract\Definiti ...
https://man.mtool.work/php/8.3/class.componere-patch.html
session_start — 新しいセッションを開始、あるいは既存のセッションを再開する | PH... 8287
session_start (PHP 4, PHP 5, PHP 7, PHP 8) session_start — 新しいセッションを開始、あるいは既存のセッションを再開する 説明 function session_start ( array $options = [] ): bool session_start() は、セッションを作成します。 もしくは、リクエスト ... ョンの指定 例3 クッキーの有効期限の上書き <?php // これは、有効期限が1日の永続クッキーを送信します session_start ([ 'cookie_lifetime' => 86400 , ]); ?> 例4 セッションの読み込みとクローズ <?php // セッション内で何も変更する必要がないことがわかっている場合は ... ローズしてしまえば、 // セッションファイルをロックして他のページをブロックしてしまうことを防げます session_start ([ 'cookie_lifetime' => 86400 , 'read_and_close' => true , ]); 注意 注意 : クッキーに基づくセッションを使用している場合、ブラウザに何か出力を行 ...
https://man.mtool.work/php/8.3/function.session-start.html
実行時設定 | PHP 8.3 7909
実行時設定 php.ini の設定により動作が変化します。 セッションの設定オプション 名前 デフォルト 変更可能 変更履歴 session.save_path "" INI_ALL session.name "PHPSESSID" INI_ALL session.save_handler "files" INI_ALL session.auto_start "0" INI_PER ... DIR session.gc_probability "1" INI_ALL session.gc_divisor "100" INI_ALL session.gc_maxlifetime "1440" INI_ALL session.serialize_handler "php" INI_ALL session.cookie_lifetime "0" INI_ALL session.cookie_path "/" INI_ALL ... でGCプロセスが 始動します。 session.gc_divisor のデフォルトは 100 です。 0 より大きな値でなければいけません。 session.gc_maxlifetime int session.gc_maxlifetime は、データが 'ごみ' とみなされ、消去されるまでの秒数を指定します。 ガベージコレクション (ごみの ... ssion.gc_probability と session.gc_divisor に依存します)。 デフォルトは 1440 (24分) です。 注意 : 異なる値を session.gc_maxlifetime に指定している 別々のスクリプトがセッションデータの保存場所を共有している場合、 一番小さい設定値に達した時点でデータが消去 ...
https://man.mtool.work/php/8.3/session.configuration.html
SessionHandlerInterface クラス | PHP 8.3 7789
SessionHandlerInterface クラス (PHP 5 >= 5.4.0, PHP 7, PHP 8) はじめに SessionHandlerInterface は カスタムセッションハンドラを作成する際の最低限のプロトタイプを定義したインターフェイスです。 自作のセッションハンドラを オブジェクト指向型 の起 ... { /* メソッド */ public function close (): bool public function destroy ( string $id ): bool public function gc ( int $max_lifetime ): int | false public function open ( string $path , string $name ): bool public function read ( string $id ): string | fa ... " ; if ( file_exists ( $file )) { unlink ( $file ); } return true ; } #[ \ReturnTypeWillChange ] public function gc ( $maxlifetime ) { foreach ( glob ( " $this -> savePath /sess_*" ) as $file ) { if ( filemtime ( $file ) + $maxlifetime < time () && file ...
https://man.mtool.work/php/8.3/class.sessionhandlerinterface.html
カスタムセッションハンドラ | PHP 8.3 7789
カスタムセッションハンドラ セッション情報をデータベースに保存する機能か他の保存法を実装するには、 一連のユーザーレベルの保存関数を作成し、 session_set_save_handler() を使用する必要があります。 SessionHandlerInterface を使ったり、 SessionHan ... るセッション有効期限にもとづいて期限切れのセッションレコードを無効化します。 この処理では、最後にアクセスされてからの時間が lifetime を超えているすべてのレコードを永続ストレージから削除しなければなりません。 他のマニュアルの関連ページ Linux JM getsid(2) D ...
https://man.mtool.work/php/8.3/session.customhandler.html
PREV 1 2 NEXT