Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Storing an array in a cookie...

by Speedy (Monk)
on Feb 27, 2002 at 19:53 UTC ( [id://148013]=note: print w/replies, xml ) Need Help??

in reply to Storing an array in a cookie...

From your problem description, it sounds as though you may plan to base mileage reimbursements (actual money payments) on the data entered and retrieved over some time for the application users. If so, the advice given above needs to be further emphasized do not use a cookie to store unvarnished information on which money depends.

Firstly, depending on how you encode things, a user could read the cookie and actually change the results, adding more miles or more trips than were originally entered. If you don't have a record somewhere else, whom is to reliably say them nay?

Secondly, as pointed out above, cookies are browser- and client-dependent. What do you plan if cookies are turned off, or the user enters the data at work one time and at home the second? Your script will not have access to both computers at once, so both for an audit trail and for data preservation, you must store the results in some structure at your Web server.

Cookies are useful for quick identification and the display of more-or-less public information. But if money is riding on the data entry, you want to be more sure that the proper person is entering the data. If so, you may have to go to a password scheme or some other method of authentication before you actually allow a user to enter or view personal data.

Consider how works. You can see recommendations for purchases based on your cookie setting alone, but the minute you try to see information that should be private, like status of orders, entering an order, or even a history of past orders, you have to have a password to at least at some level verify you are who you say you are.

If in fact cash payments (affecting business expenses and taxes) are involved, you will want a more robust security and storage solution.

Live in the moment

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148013]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-05-30 03:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found