i get this error:
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0
According to it, i have to enable(register) the global variables right? How do I do so, and why is the error occurring in the first place?
Are you calling session_start() at the VERY top of your PHP document?
The PHP manual says that the session_register() function has been deprecated as of PHP 5.3.0 and reliance on it is highly discouraged.
Instead, do something like
$_SESSION[‘dog’] = “Woof”;
But you must be calling session_start() before anything else in your document!