PHP4 session may not work as it should, unless you use it consistent way.
i.e. Use session_(un)register() and only use globals, OR enable track_vars and
disable register_globals and only use $HTTP_SESSION_VARS w/o
session_(un)register(). It may work even if register_globals is on. I didn't
test se
I did it!
Too much work for something as simple as this though IMO. I think I will
write a function for this...
Thanks,
// Tobias
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
9bdeag$88r$[EMAIL PROTECTED]">news:9bdeag$88r$[EMAIL PROTECTED]...
> You are registered $array as session,
>
@ 8:18:31 PM on 4/15/2001, Brian Clark wrote:
...
> Why not save the values to a temp variable, destroy the session,
> unset the value you want to unset, then register it again?
Well I take that back. Read the first two comments here:
http://www.php.net/manual/en/function.session-unset.php
By
You are registered $array as session,
You need to unset() element. I think it should work.
Regards,
--
Yasuo Ohgaki
""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message
9bd8un$kqt$[EMAIL PROTECTED]">news:9bd8un$kqt$[EMAIL PROTECTED]...
> I know how to unset a specific value in an ordinary ar
Hi Tobias,
@ 7:01:41 PM on 4/15/2001, Tobias Talltorp wrote:
...
> I tried this... Didn't work:
> session_start();
> session_unregister("array[one]");
?>>
Why not save the values to a temp variable, destroy the session, unset
the value you want to unset, then register it again?
-Brian
--
PGP
I know how to unset a specific value in an ordinary array:
unset ($array["one"]);
How do I do this if my array is in a session?
Here is my code:
"number one", two=> "Number two", three=> "Number
three");
session_register("array");
?>
I tried this... Didn't work:
Thanks,
// Tobias Talltorp
6 matches
Mail list logo