View Single Post

  #6 (permalink)  
Old 03-09-2008
Tim Roberts
 
Posts: n/a
Default Re: Arrays as Session Variables?

Alan M Dunsmuir <alan@moonrake.demon.co.uk> wrote:
>
>To avoid repeated hits on my database, I'd like to use a single access,
>from which I can create a list of all the records of a particular type
>which already exist.
>
>I'd then have to store the identifiers of all these existing records as
>the members of an associative array, but I'd have to be able to copy
>this array's members to a Session Variable.


....which is then stored in a flat file on your server's hard disk (by
default), and which gets re-read and re-parsed for every PHP request. Are
you sure that's an improvement?
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Reply With Quote