Posted by Carl Vondrick on 03/02/06 03:54
Chuck C wrote:
> Is there a way to access the values from a session by using an index/count
> instead of the name?
>
> Something like:
>
> $_SESSION[1]
>
> Also, can you query the name and value for this?
>
> What I am looking to do is have a lot of different variables stored in my
> session but the names may change or be different.
>
>
I do not see why note -- it is simply an array.
If you are going to have a dynamic amount of keys in your sessions, then
you should put an array inside your session array. Example:
$_SESSION['myarrary'] = array(1,2,3,4);
Carl
--
Carl Vondrick
www.carlsoft.net
usenet [at] carlsoft [dot] net
[Back to original message]
|