Hi Guys, I have a problem with a site where Iım using sessions.
Basically, I have it so that someone enters the site and their session (shopping cart ref) is created on entry (unless it already exists) and all variables are stored in the session. Problem is that when someone goes so far in the ordering process, and then (for whatever reason) leaves the site, and comes back hours, seconds or whatever later, and goes again to place an order, the details are different (time), and the session stays the same so the order entry is entered twice in the database. I have gotten around this by checking for the existence of the database entry for that person and session, and if the entry exists, then I just update the details, but Iım wondering if there might be a better way of doing this? I had looked at the idea of sessions expiring and found the following in my php.ini file, and see that the session lifetime is set to 24mins, but am wondering if there is any given reason why I should change this (or not!). session.cookie_lifetime = 0 session.gc_maxlifetime = 1440 Thanks for the help, Enda -- - + - + - + - + - + - + - + - + - + - + - + - + - Enda Nagle +353 86 168 0774 [EMAIL PROTECTED] www.category9.com - + - + - + - + - + - + - + - + - + - + - + - + -