Hi all,
I've read through some posts on ssl/sessions but still don't quite understand how to make them work.
I also read through too, but got (a little) lost.
With these two scripts, what would need to be added to parse the session info?
And 'test_2.php'
Any pointers and input would be much appreciated.
TIA
GDB
I've read through some posts on ssl/sessions but still don't quite understand how to make them work.
I also read through too, but got (a little) lost.
With these two scripts, what would need to be added to parse the session info?
Code:
<?php
session_cache_limiter('private_no_expire');
session_start();
if($Submit){
$message = 'No_SSL';
//header ("Location: [URL unfurl="true"]https://my_website/test_2.php");[/URL] //NFG
require ("test_2.php"); //OK, not secure
exit;
}
?>
<html>
<head>
<title>Foo_Bar_ssl test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="test_1.php">
<?php
echo "<input type=\"text\" name=\"name\" value=\"$name\">";
?>
<input name="Submit" type="submit" value="Submit">
</form>
</body>
</html>
And 'test_2.php'
Code:
<?php
session_cache_limiter('private_no_expire');
session_start();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
echo ("$message");
?><br>
<?php
echo ("$name");
?>
</body>
</html>
Any pointers and input would be much appreciated.
TIA
GDB