data between pages: $_SESSION vs. $_GET ?

Posted by Haroldo on Stack Overflow See other posts from Stack Overflow or by Haroldo
Published on 2010-03-24T18:38:34Z Indexed on 2010/03/24 18:43 UTC
Read the original article Hit count: 269

Filed under:

Ok, firstly this is not about forms this is about consistent layout as a user explores a site.

let me explain:

If we imagine a (non-ajax) digital camera online store, say someone was on the DSLR section and specified to view the cameras in Gallery mode and order by price. They then click onto the Compact camera's page. It would be in the users interests if the 'views' they selected we're carried over to this new page.

Now, i'd say use a session - am i wrong?

are there performance issues i should be aware of for a few small session vars ( ie view=1 , orderby=price) ?

© Stack Overflow or respective owner

Related posts about php