473,493 Members | 4,355 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.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?

Sep 14 '06 #1
2 1184
NC
he******@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

Sep 14 '06 #2
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:
he******@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
Sep 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2822
by: Frostillicus | last post by:
I'm trying to use array_multisort to sort by one of the dimensions of an array stored in $GLOBALS like this: array_multisort($GLOBALS, SORT_STRING, SORT_DESC); Each "row" in $GLOBALS contains...
7
1742
by: John | last post by:
Hi, I'm looking for the best way to deal with globals in PHP. As a 'C' software developer, I would normally avoid all globals and not have any at all, but use structs and pass everything in...
4
2306
by: Kerim Borchaev | last post by:
Hello! Always when I use "super" I create a code duplication because class used as first arg to "super" is always the class where the method containing "super" was defined in: ''' class C:...
11
5010
by: Nicolas Lehuen | last post by:
Hi, I hope this is not a FAQ, but I have trouble understanding the behaviour of the super() built-in function. I've read the excellent book 'Python in a Nutshell' which explains this built-in...
2
3076
by: xml0x1a | last post by:
How do I use exec? Python 2.4.3 ---- from math import * G = 1 def d(): L = 1 exec "def f(x): return L + log(G) " in globals(), locals() f(1)
3
1928
by: Paul Sijben | last post by:
I am running a multi-threaded python application in a dual core intel running Ubuntu. I am using python 2.5.1 that I compiled myself. At random points I am getting segmentation faults (sometimes...
1
1837
by: cokofreedom | last post by:
if __name__ == '__main__': print "Globals (For Loop):" try: for i in globals(): print "\t%s" % i except RuntimeError: print "Only some globals() printed\n" else: print "All globals()...
1
13284
by: HarishAdea | last post by:
Hi, I am trying to run the JAVA pgm, but it is giving error as "selection does not contain a main type". The filename is "ScoreLeadSummary.java" when i try to run it or debug,it gives the pop...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.