Created
December 18, 2012 07:59
-
-
Save mgng/4325975 to your computer and use it in GitHub Desktop.
session + POST のときに戻ったりしても「有効期限切れ」がでなくするやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 | |
Expires Thu, 19 Nov 1981 08:52:00 GMT | |
Pragma no-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
header('Expires: -1'); | |
header('Cache-Control:'); | |
header('Pragma:'); | |
// 処理 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment