ถ้าใส่ code นี้ ที่ บนสุดของ file
<?php session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();
/* start the session */
session_start();
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
มันยังจำอยู่ไหมคะ
ลองแล้วครับ มันยังจำค่าเก่าอยู่เลยครับ แต่ถ้าห้อย query string ไว้ด้านท้าย เปลี่ยนทันทีเลยครับ แปลกดีเหมือนกัน แต่วิธีของคุณ djoser จะดีกว่า เพราะมันจะไม่มี url เยอะแยะมากมาย เกิด duplicate content