NYCPHP Meetup

NYPHP.org

[nycphp-talk] preventing randomized session variable from changing when page is refreshed

Ajai Khattri ajai at bitblit.net
Wed Aug 20 18:14:24 EDT 2008


On Wed, 20 Aug 2008, Kristina Anderson wrote:

> John -- store the cart items in the $_SESSION array and only write to 
> the database when they check out?

Sure, that would work.

Or store using a database table temporary session data (some PHP 
frameworks have support for that and have the added advantage of working 
across a cluster of servers).

You dont need to reinvent the wheel.


-- 
Aj.




More information about the talk mailing list