I have a question about PHP5 Sessions, I have been using some PHP4 Code for a couple of years and suddenly I started getting some funny messages on the bottom of the page. such as:
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.
It seems that my Session handling Code is pretty dated. After looking for PHP5 Session Management guides on the net I am confused could someone please show me the php5 replacements for my PHP4 session codinge below. Thanks.
// Receiving variables from form
$kdnkdnr = $_POST['kdnkdnr'];
//Register form Variable to session
$HTTP_SESSION_VARS ["scznrz1"] = $sczn1z1;
// Place Session variable id into local variable
$kdnuser = $_SESSION['kdnuser'];