Quote:
|
Originally Posted by ChefFrank
OK - let me ask some stupid questions - since I was interested in doing something like this in the future.
Since HTML/PHP is 'context-free', you need to store user context someplace. Would this be an appropiate use of cookies?
My experience in designing client/server systems generally places the burden of context management on the client. So, you either have to do a lot of playing around with forms and hidden fields, or find another way to mantain context, hence, cookies -- which, I think, can be read at any time within a session.
Please correct me if I don't properly understand how cookies work.
Frank
|
Frank, in this case, I'd recommend storing the persistant data in a session. The session data is basically a cookie that gets stored on the server for the time the browser stays open or until you manually destroy the session in the php script.
I try to avoid using client side cookies as much as possible. There are instances where it does make a lot of sense though.