hi I’ve made a script with the use of SESSIONS, the script worked on my localhost machine but after uploading to a remote server the sessions don’t seem to work!
the remote server is running - 5.0.5
the localhost server - 4.4.1
below are to separate pages to test such session !
session.php declares and assigns a value to session
session2.php asks for the session to be outputted after echoing session var.
It seems the session does not pass to the next page, can any one help, any ideas?
session.php
<?php
session_start();
$SESSION['test'] = "yes";
$testout = $SESSION['test'];
echo''.$testout.'';
echo'<ahref="http://www.domain.com/~si/test/session2.php">clickhere for session test ';
?>
session2.php
<?php
$testout = $_SESSION['test'];
echo''.$testout.'';
echo'TESTING 123';
?>