Folks
I need some help here.
I have 2 files, one that set a Session variable and one that tried to retrieve it.
File 1 starts with:
<?php
if (isset($PHPSESSID)) {
session_start();
$_SESSION['allowed2'] = 'No';
}
and further down the code does $_SESSION['allowed2'] = 'Yes'; Depending on some criteria.
File 2 Starts with:
<?
session_start();
$allowed2 = $_SESSION['allowed2'];
but this throws an error saying ‘Notice: Undefined index: allowed2’.
I’m running WinXP, IIS5, PHP 4.2.0 I have register_globals = Off in the php.ini.
May thanks in advance.
Rich