Skip to content

Instantly share code, notes, and snippets.

@mgng
Created Dec 18, 2012
Embed
What would you like to do?
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