Simmo Posted October 18, 2010 Share Posted October 18, 2010 Hi This is the senario: User logs in, if successful connection details for his database are stored in a session variables which are used to access information. Are there any precautions I need to make sure the data in the sessions are safe? Thanks Quote Link to comment Share on other sites More sharing options...
freelance84 Posted October 18, 2010 Share Posted October 18, 2010 I had a similar query. I think the general thought is that session variables are safe. However if you wanted to make double sure then you could still run any sanitizing checks on them. Just be sure to only run data once through the mysql_real_escape_string before entering into mysql, else you end up with undesirable results Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.