0

Hi,

I would like to set variables from session variables. Like this:

$fname=$_SESSION['fname'];
$lname=$_SESSION['lname'];
$email=$_SESSION['email'];
$month=$_SESSION['month'];
$day=$_SESSION['day'];
$year=$_SESSION['year'];
$city=$_SESSION['city'];
$state=$_SESSION['state'];
$uname=$_SESSION['uname'];
$pass=$_SESSION['pass'];
$encpass=$_SESSION['encpass'];

I think this is triggering the following 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

First, am I right? Second, what are my alternatives? Thanks for the help!

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by baudday
0

I am using

session_start();

I ended up just turning off the two things mentioned in the error message. Is this not a good solution?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.