[FX.php List] Fwd: Storing an array in a session variable

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Feb 4 10:48:13 MST 2009


I do this all the time, but I make a project key layer right after the _SESSION

Mine would look like this: $_SESSION[$projectKey]['pay'] = $pay;

ggt

2009/2/4 Bob Patin <bob at patin.com>:
> Is it possible to store an array in a single session variable?
>
> In my project, I have an array called $pay[], which can have any number of
> variables (I'm blanking on what you call array values...); can I just write
> this
>
> $_SESSION['pay'] = $pay;
>
> or do I somehow need to set up the session variable because I'm storing an
> array?
>
> Or do I have to store each array value separately... groan?
>
> Thanks,
>
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> Twitter: bobpatin
> iChat/AIM: bobpatin
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance & TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list