Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はsslでのみ機能するCookieを持っています:
$data = $users->customer->getUsernames(); $data = join(",", $data); setcookie('test_cookie', $data, time()+3600, '/root/en/server/', 'server.test.com', true);
さて、どうすればこのクッキーの時間を取得できますか?
HTTPリクエストでサーバーに送信されるCookieの内容には、Cookieに設定した変数/値のみが含まれ、有効期限は含まれません。必要に応じて、Cookieの値を「埋める」ことで、設定するたびに有効期限を含めることができます。