Connecting Tech Pros Worldwide Forums | Help | Site Map

Issue with Super Globals

hexerror@gmail.com
Guest
 
Posts: n/a
#1: Sep 14 '06
Hello,

I am currently having an issue with accessing any type of Super Global
variable from within my scripts. The issue occurs when I attempt to get
the data from a Super Global variable from within a function that
resides in a script that is executed via include() or require().

Here's a layout of what occurs:

- process_login.php sets session data after a successful submission of
username and password. The script sets values for $_SESSION['user'] and
$_SESSION['auth']. Also, session_start() has been used at the beginning
of the script. This script has no output, but forwards the user via
header() to ./display.php.

- http://www.url.com/display.php?module=tasks
display.php looks up the proper page to require() via a text file list
of pages. This script has also used session_start() and sets
the value for $_SESSION['root_directory'].

- ./manage_tasks.php is require()'d into display.php

- function showAllTasks() attempts to get $_SESSION['auth'] to
determine if a button with a javascript function should be displayed to
remove or edit the task if their authorization integer is greater than
or equal to a set value within the script.

showAllTasks() cannot get the session data. Even if display.php,
manage_task.php, and showAllTasks() use session_start(), the function
cannot get the session data.

What is causing this?




NC
Guest
 
Posts: n/a
#2: Sep 15 '06

re: Issue with Super Globals


hexerror@gmail.com wrote:
Quote:
>
I am currently having an issue with accessing any type
of Super Global variable from within my scripts.
Any or just $_SESSION?
Quote:
What is causing this?
Disabled cookies in your browser, perhaps?

Cheers,
NC

hexerror@gmail.com
Guest
 
Posts: n/a
#3: Sep 15 '06

re: Issue with Super Globals


Yes, "accessing any type of Super Global variable."

Cookies are enabled and unrestricted through my browser (Firefox). This
issue occurs on all machines from which I've tested.

NC wrote:
Quote:
hexerror@gmail.com wrote:
Quote:

I am currently having an issue with accessing any type
of Super Global variable from within my scripts.
>
Any or just $_SESSION?
>
Quote:
What is causing this?
>
Disabled cookies in your browser, perhaps?
>
Cheers,
NC
Closed Thread