Re: $_SESSION, session_is_regi stered
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_global s 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:<vo3s29ftu t7g11@corp.supe rnews.com>...[color=blue]
> Platform: Win2k Server, Apache 1.3, PHP 4.2.3
>
> I understand that when using $_SESSION variables, using the
> "session_regist er()" 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_globa ls" is set to "On" in the INI file.
>
> So, to the PHP world at large I ask "what am I missing"?
>
> thanks[/color]
$_SESSION, session_is_registered
Collapse
This topic is closed.
X
X
-
Guest replied -
Guest repliedRe: $_SESSION, session_is_regi stered
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:vo3s29ftut 7g11@corp.super news.com...[color=blue]
> Platform: Win2k Server, Apache 1.3, PHP 4.2.3
>
> I understand that when using $_SESSION variables, using the
> "session_regist er()" 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[/color]
arrrays[color=blue]
> 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_globa ls" is set to "On" in the INI file.
>
> So, to the PHP world at large I ask "what am I missing"?
>
> thanks
>
>
>
>[/color]
Leave a comment:
-
Guest repliedRe: $_SESSION, session_is_regi stered
"B-B" <b~r~i~a~n-at-b~o~n~a~n~z~a~p ~r~e~s~s~-dotcom> schrieb:
[color=blue]
> 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_globa ls" is set to "On" in the INI file.[/color]
Ooops. In that case your program might overwrite the variable.
[color=blue]
> So, to the PHP world at large I ask "what am I missing"?[/color]
Are you sure that your seesion id is transported to the next page via
gookies or get-parameter?
Regards,
Matthias
Leave a comment:
-
Guest repliedRe: $_SESSION, session_is_regi stered
B-B wrote:
[color=blue]
> 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).[/color]
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.sessi on-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.
*************** *************** *************** ****
[color=blue]
>
> "register_globa ls" is set to "On" in the INI file.[/color]
People here tell me it should be off....
--
Spam:newsgroup( at)craznar.com@ verisign-sux-klj.com
EMail:<01100011 001011100110001 001110101011100 10011010110
110010101000000 011000110111001 001100001011110 10011011100
110000101110010 001011100110001 101101111011011 0100100000>
Leave a comment:
-
$_SESSION, session_is_registered
Platform: Win2k Server, Apache 1.3, PHP 4.2.3
I understand that when using $_SESSION variables, using the
"session_regist er()" 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_globa ls" is set to "On" in the INI file.
So, to the PHP world at large I ask "what am I missing"?
thanks
Tags: None
Leave a comment: