i'm updating a news script to php 4.2.0 but i want it to make with older versions to.. but sessions are not working.. i have some problems cause i don't understand very well sessions in version 4.. they say when globals are off that i should not use session_register.. and so on.. why is this not working...
-> index...
( if user/pass ok)
session_start();
$HTTP_SESSION_VARS["uid"] = $userid;
session_register("uid");
$HTTP_SESSION_VARS["uname"] = $username;
session_register("uname");
-> other files..
if (!$_HTTP_SESSION_VARS['uname']) { echo "AHAAHAHA"; session_start(); session_destroy(); die("Authorization required."); }
else {... bla bla...
ergh.. i was trying to find some help in php chm's.. but there were alot of examples but none worked.. :o