Platform: Win2k Server, Apache 1.3, PHP 4.2.3
I understand that when using $_SESSION variables, using the
"session_register()" function should not be done. I have seen no
documentation pertaining the the "why" of this, but I am removing the
offending statements from my code anyway.
Prior to discovering this tidbit, I had been attempting to save some arrrays
in individually registered variables. But the arrays were not being saved
between pages.
I have also attempted to save the array in a $_SESSION variable (e.g.
$SESSION['XYZ']=$XYZ, xyz being an array); still no joy (the data seems to
be ending up in the $_SESSION variable, but again it is not saved between
page requests).
"register_globals" is set to "On" in the INI file.
So, to the PHP world at large I ask "what am I missing"?
thanks 4 6147
B-B wrote: I have also attempted to save the array in a $_SESSION variable (e.g. $SESSION['XYZ']=$XYZ, xyz being an array); still no joy (the data seems to be ending up in the $_SESSION variable, but again it is not saved between page requests).
Have you looked at session_start() ...
*************************************************
session_start() creates a session (or resumes the current one based on
the session id being passed via a GET variable or a cookie).
If you want to use a named session, you must call session_name()
<function.session-name.html> before calling session_start().
This function always returns TRUE.
Note:
If you are using cookie-based sessions, you must call session_start()
before anything is output to the browser.
session_start() will register internal output handler for URL rewriting
when trans-sid is enabled. If a user uses ob_gzhandler or like with
ob_start() <function.ob-start.html>, the order of output handler is
important for proper output. For example, user must register
ob_gzhandler before session start.
************************************************* "register_globals" is set to "On" in the INI file.
People here tell me it should be off....
--
Spam:newsgroup(at)cr*********@verisign-sux-klj.com
EMail:<0110001100101110011000100111010101110010011 010110
11001010100000001100011011100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>
"B-B" <b~r~i~a~n-at-b~o~n~a~n~z~a~p~r~e~s~s~-dotcom> schrieb: I have also attempted to save the array in a $_SESSION variable (e.g. $SESSION['XYZ']=$XYZ, xyz being an array); still no joy (the data seems to be ending up in the $_SESSION variable, but again it is not saved between page requests).
"register_globals" is set to "On" in the INI file.
Ooops. In that case your program might overwrite the variable.
So, to the PHP world at large I ask "what am I missing"?
Are you sure that your seesion id is transported to the next page via
gookies or get-parameter?
Regards,
Matthias
I did finally get things to work properly, thank you to those who responded.
"B-B" <b~r~i~a~n-at-b~o~n~a~n~z~a~p~r~e~s~s~-dotcom> wrote in message
news:vo************@corp.supernews.com... Platform: Win2k Server, Apache 1.3, PHP 4.2.3
I understand that when using $_SESSION variables, using the "session_register()" function should not be done. I have seen no documentation pertaining the the "why" of this, but I am removing the offending statements from my code anyway.
Prior to discovering this tidbit, I had been attempting to save some
arrrays in individually registered variables. But the arrays were not being saved between pages.
I have also attempted to save the array in a $_SESSION variable (e.g. $SESSION['XYZ']=$XYZ, xyz being an array); still no joy (the data seems to be ending up in the $_SESSION variable, but again it is not saved between page requests).
"register_globals" is set to "On" in the INI file.
So, to the PHP world at large I ask "what am I missing"?
thanks
I am having the same problem and I have already posted a message on
the board, but its not visible to the public yet.
Could you please let me know ho did u get it to work. I have
register_globals OFF.
Thanks a bunch.
Avinash
"B-B" <b~r~i~a~n-at-b~o~n~a~n~z~a~p~r~e~s~s~-dotcom> wrote in message news:<vo************@corp.supernews.com>... Platform: Win2k Server, Apache 1.3, PHP 4.2.3
I understand that when using $_SESSION variables, using the "session_register()" function should not be done. I have seen no documentation pertaining the the "why" of this, but I am removing the offending statements from my code anyway.
Prior to discovering this tidbit, I had been attempting to save some arrrays in individually registered variables. But the arrays were not being saved between pages.
I have also attempted to save the array in a $_SESSION variable (e.g. $SESSION['XYZ']=$XYZ, xyz being an array); still no joy (the data seems to be ending up in the $_SESSION variable, but again it is not saved between page requests).
"register_globals" is set to "On" in the INI file.
So, to the PHP world at large I ask "what am I missing"?
thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phil Powell |
last post by:
What is the most standardized method of utilizing the CURL functions
in PHP (version 4.3.2) to be able to retrieve the contents of a remote
URL that happens to be dependent upon $_SESSION for its...
|
by: jerrygarciuh |
last post by:
Hi folks,
I am working with PHP 4.3.8, Linux, and Apache 1.3.31 on a third-level or
sub domain.
The following code will diplay foo, session_id(), and increment count over
refreshes:
<?php...
|
by: axlq |
last post by:
Someone please tell me if I've discovered a PHP bug.
I'm sitting in front of several computers on my home network, behind
a NAT firewall/router. I am testing my web site on these different...
|
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...
|
by: somecrazyguy |
last post by:
Take the following code, one would think that there was absolutely no link between $test and $_SESSION. But if you reload the page, guess what... "After=FAILED". Why? Because for some reason,...
|
by: dpinion |
last post by:
Greetings,
I am trying to do some simple session stuff. However it does not seem
as though the session variable is being created for my site. I am
running the latest version of PHP and apache that...
|
by: Pseudonyme |
last post by:
Dear Sirs and Madams,
Receive as information that storing a MYSQL result under $_SESSION was
accelerating web page displays processes ? Absolutly needed but
impossible to get this working !
I...
|
by: sharonDonnelly |
last post by:
Hi
Really dumb problem that's got me beat. Can someone help.
The prolem: I'm trying to count the number of times an item has been clicked. There are many items. I want to create a session...
|
by: JRough |
last post by:
I want to save two variables in a $_SESSION for use in another page:
$_SESSION = $mark;
$_SESSION = $num;
then on the other page I did this to get the value:
$mark =$_SESSION;
$num =...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| | |