Skip to content

Instantly share code, notes, and snippets.

@mgng
Created December 18, 2012 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgng/4325975 to your computer and use it in GitHub Desktop.
Save mgng/4325975 to your computer and use it in GitHub Desktop.
session + POST のときに戻ったりしても「有効期限切れ」がでなくするやつ
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
<?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