First of all, should I store <whatever I should be storing> in cookies or session variables? Is it possible for a user to view or modify session variables like they can cookies? Also, what exactly should I be storing in order to check which user is logged in? I would want to say it would be convenient to store the user's ID (or increment in the database), but if I stored this in a cookie it would not be difficult for a malicious user to go in and say, "Hmm, who's account do we feel like messing around on today? ID 3? *Changes cookie to 3* Sweet!" So, what are cookies good for other than storing (possibly) long-term and non-sensitive preferences?
By that I mean: people don't use cookies for storing log-in stuff, do they? Wait, this site is probably doing that for me right now since I told it to stay signed in... what the heck...)
Thanks for your help!
This post has been edited by AVReidy: 31 January 2012 - 04:27 PM

New Topic/Question
Reply



MultiQuote






|