I've got a site completed on Php5 and apache on my developing machine and it works well. However, i have php5 installed on my machine.
I JUST got which server the file will be on assigned to me, and the server is running PHP 4.4.1
I cant upgrade the php version on the server, so I now must convert my sessions form php5 to php 4.
my site is dependent on session variables to keep the user logged in, without it the user is redirected to a login page.
So whey I got the site and login the first page works as usual, but when you click any othe rpage i get redirected to the login page.
So I know its a session problem because I keep trying to echo my sess vars and they are coming up blank.
in my original code I establish variables as such
session_start();
$_SESSION['myvariable'] = $myvariable
and retrieving them using the $myvar = $_SESSION['myvar'];
now, i was under the impression PHP 4.4.1 would be able to handle the same way. However, that doesnt seem to be the case.
So i'm trying to revert back the sessions to PHP 4, using session_register("myvar")
how would you set and recall session variables in php4 or am I doing something wrong?