473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

$HTTP_SESSION_VARS

Ok, I have this form that does a $PHP_SELF post, goes through error
checking, then redirects to loc( );

I am setting a session as follows:

if(!session_id()) {
session_start();
$sid = $PHPSESSID;
}

then I am doing post $PHP_SELF:

if ($form) {

if (!$ltype) {
$msg = "Please make a selection.";

} else {

session_register($ltype);

loc("index2.php?sid=$sid&ltype=$ltype");

}
}
Now I get a session ID just fine, but on index2.php I can only retrieve via
HTTP_GET_VARS, and HTTP_SESSION_VARS is blank. So what do I need to do to
access the session variable I am registering?

I am doing this on index2.php and still I get nothing. Am I regisering
variables wrong? I have Superglobals turned on in php.ini.

while (list ($key, $val) = each ($HTTP_SESSION_VARS)) {
print $key . " = " . $val . "<br>";
}
Jul 17 '05 #1
0 5707

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

Similar topics

0
by: _mario.lat | last post by:
for ending a session I go to a page: destroysession.php and all it's right: I mean, all variable of session are destroied! BUT when I go to another page a new session (should) be created BUT whit...
2
by: Alex Hopson | last post by:
Hi, I'm trying to modify a shopping cart script from Mastering PHP/MySQL and am having trouble setting up some arrays for it. The original code, below, stores the cart items in a session...
2
by: kublai khan | last post by:
I am coming from (an elementary-level) javascript background. I set cookiesin select pages to see where the users are coming from and where they are going. It works quite nicely except that I'd...
0
by: chhangru | last post by:
i have this log in script from a book that uses session variable to track the user.. everything works fine in firefox but in IE 6.0 the page only refreshes and the user can be authenticated... i...
7
by: Nicole | last post by:
Hi I'm trying to use a function to set a session variable. I have three files: The first file has: <?php session_start(); // This connects to the existing session ?> <html> <head>
12
by: Michael Windsor | last post by:
I've been trying to integrate some PHP pages of my own with some existing code. The details of this are for the support forums for that code (where I have been asking questions), but I wonder if...
3
by: dheeraj4uuu | last post by:
Hi.. I hav a musicbox V2 script and i uploaded and installed everything but when my users trying to register for an account the submit button was not coming up..and also in my admin panle some...
3
by: Shawn Northrop | last post by:
I have on one page: session_start(); session_register ("email"); session_register ("firstname"); session_register ("lastname"); $HTTP_SESSION_VARS = $email; ...
7
by: Deccypher | last post by:
Hi Im trying to do something a little more complex with my login script at the moment it works fine, checks the username and password with the database if its wrong it echo's a error and if its right...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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
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...

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.