Issue with Super Globals

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hexerror@gmail.com

    Issue with Super Globals

    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.p hp 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.ph p 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

    #2
    Re: Issue with Super Globals

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

    Cheers,
    NC

    Comment

    • hexerror@gmail.com

      #3
      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:
      hexerror@gmail. com wrote:

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

      Comment

      Working...