<?php
// Cookie testing page
if ($submit) {
session_start();
if(!isset($_SESSION['vars'])) {
$vars['pic'] = "pic";
}
}
?>
<form method=post action=sessions.php>
<input type=submit name=submit value='set session'>
</form>
This is suppose to set a session.. However it does not .. Any suggestions?
<?PHP
session_start();
$vars = $_SESSION['vars'];
$whatever = $vars['pic'];
?>
That is session2.php where i view the session that the script above created.
Thank you for any help you can provide.