Can I have a session array that gets added dynamically?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nse111
    New Member
    • Jul 2008
    • 21

    Can I have a session array that gets added dynamically?

    Is it possible to have a Session variable as an array in PHP where,


    that array gets values added to it dynamically?


    Im trying to create a inquiry cart where the product ids of all the items that a customer inquires about gets stored in a session variable. how can I do this?

    the ids can be sepperated by a delimeter dynamically. I just cant get this done. pls help if you know. thans in advance!
  • Tarantulus
    New Member
    • May 2007
    • 114

    #2
    should be possible, by "inquiry" I guess you mean looking up product details? in this case you must be seeting an ID variable somewhere? am I right?

    in which case just set $_SESSION['$id'], so you will have an array value for each product.

    Comment

    Working...