I am updating this method, which no longer requires Javascript and is much more reliable!
For this to work, ALL your web pages must look like this:
<?php
//redirect user back to this page if missing www. in the URL (no http://myweb.com) here.
$randomcode = ; //generate random code here
?>
<html>
<head>
<title>Web Page</title>
</head>
<body>
<img src="http://myweb.com/images/logo.gif" border="0" />
<div id="ssl" style="display: none;"><img src="https://www.myweb.com/RegenerateIdentifier.php?nocache=<?php echo $randomcode ?>" /></div>
<h2>Welcome to myWeb.com!</h2>
</body>
</html>
Your web page URLs must include the www. (e.g. http://www.yourweb.com/page.php).
The next important thing is all other non web page files, such as JS, CSS, DOC, ZIP, GIF, JPG, etc. must have a URL without the www. (e.g. http://yourweb.com/images/logo.gif).
The reason for this is because PHP creates different session identifiers for both URLs. This prevents non web page requests intercepting important data. Alternatively, you can create a sub domain (http://upload.yourweb.com/images/logo.gif).
RegenerateIdentifier.php
<?php
//FAST SSL - Regenerate session identifier
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
session_start();
session_regenerate_id(FALSE);
?>