Tag Name Example(s) Description Author <META NAME=”AUTHOR” CONTENT=”Tex Texin”> The author’s name. cache-control <META HTTP-EQUIV=”CACHE-CONTROL” CONTENT=”NO-CACHE”> HTTP 1.1. Allowed values = PUBLIC | PRIVATE | NO-CACHE | NO-STORE.
Public – may be cached in public shared caches
Private – may only be cached in private cache
no-Cache – may not be cached
from http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html
As we all know an xmlhttp script requires the use of the readystatechange event. In theory, using the load event is also possible, but Explorer doesn’t support it on xmlhttp requests.
Both these events, and the readyState property, have a few odd quirks when used in an xmlhttp environment, though. [...]
Problem:
When doing AJAX call, IE will cache every AJAX call. Hence, url such as ‘/post.do’ will return the same thing and actually the AJAX request will not be sent after the first time.
Solution:
put AJAX url ‘/post.do’ with a time stamp as following:
jQuery.get(‘/post.do?ts=’+(new Date()).getTime());
<?
session_start();
$_SESSION['mySession'] = “hello”;
header (“Location: xpage.php”);
exit(); //This sentence do the magic
?>
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta