I am using sessions like the demo of code below. I have code in the sessions code that caches the previous page so that the user can use the back button after a form post to go back to the original page. The code caches the info so that the user does not get the "Expired" message upon using the back button.
This works fine with regular non-SSL calls. However, when using SSL (https://domain.com/script.php), the expired message still appears when using the back button after posting from a form.
I am using Redhat Linux 7.1 and Apache 1.3.22.
Here is the code....
session_start(); //start session
session_register("Domain");//register the variable
session_register("Pass");//register the variable
/ The following if statement detects a post and sends /
/ a header which allows caching so that the back button /
/ won't give page expired warning /
if ($REQUEST_METHOD=='POST')
{
header('Expires: ' . gmdate("D, d M Y H:i:s", time()+1000) . ' GMT');
header('Cache-Control: Private');
}