Forum Moderators: coopster

Message Too Old, No Replies

edit cookie.txt?

         

bobnew32

6:57 am on Aug 2, 2005 (gmt 0)

10+ Year Member



I know someone who only relies on cookie information to login where I know and heard that is foolish. Is it possible to edit cookie.txt successfully, or another text page thats browser specific? I want to know before I give them the grave news and be wrong. Thx guys.

mcibor

10:51 am on Aug 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Server cannot change the whole cookie.txt, only the server related. However the user can change all the cookie.txt that he wants.

Cookies are not to store possibly dangerous data (as password) or data that can be malused (eg. price). For that you should use database, or file (better db).
In cookie you can store eg.username for simpler login, non relevant data like filter, session id, etc.

Remember that if you use _SESSION it usually relies on cookie, so it's not so foolish.
I use only cookie to pass the logged in info (I store the rnd number and username, the whole information is stored in db - I check if rnd number for username is correct, then user is logged. It's quite secure.)

So to say the truth it really depends on what's being stored in that cookie, not on the usage of cookies themself that may pose threat to webpage security.

Hope this cleares some things
Michal Cibor