2012-09-26 2 views

답변

0
session_cache_expire(0); 

에 최대 사용 기간을 설정하거나 캐시를 제거하기 위해 사용하려는 경우 : 함께하려고

<?php 
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past 
?> 
+0

캐싱을 제거하지 않으려는 경우 max-age 매개 변수를 제거하면됩니다. 'session_cache_expire (0);'는 단지'max-age = 0'을 설정하고, 그것을 제거하지 않습니다. – ProgrammerGirl

+0

왜 그렇게하고 싶은지 잘 모르겠지만 도움이 될 것입니다. http://serverfault.com/questions/295982/htaccess-how-to-remove-cache-controls-max-age – raidenace

관련 문제