Reputation: 2951
I had my form processes working perfectly but after renaming the form action to
<form action="https://www.example.com/validate.php" method="post">
for working with an SSL certificate it stopped working. Seems as though the SESSION variables are no longer being passed properly...
Is there something I should know about https and forms? If I keep the form action path relative it works fine but will my form be secure?
Upvotes: 1
Views: 1824
Reputation: 43619
Next, you might want to pass your Session ID of the non-secure page to the secure page.
e.g. at Form page:
<form action="https://www.example.com/validate.php" method="post">
<input type="hidden" value="<?php echo session_id(); ?>" name="sid" />
at postback page:
session_id($_POST['sid']);
you should be able to reconnect to the session. hope it helps.
Upvotes: 2