A SESSION Problem
| From: | tedd | Date: | Tue, 11 Dec 2007 14:53:21 +0000 |
| Subject: | A SESSION Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-265684@lists.php.net to get a copy of this message | ||
Hi gang:
I just had this happen and wonder what the fix is for it.
I am sending session data from a script in a http to another script in https. However, sometimes the data gets through and sometimes it don't.
Any ideas or fixes?
Both scripts are listed below
[1]
<?php session_start();
$x = 'zzz';
$_SESSION['x'] = $x;
?>
<form action="https://example.com/a-session2.php" method="post">
<input type="submit" value="Proceed to Step 2">
</form>
[2]
<?php session_start();
print_r($_SESSION);
?>
<form action="http://example.com/a-session1.php" method="post">
<input type="submit" value="Proceed back to Step 1">
</form>
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com