I am wondering if anything from the $_SESSION array needs to be escaped before I use it in a SQL query.
Note that I don’t use cookies in my application, since I’ve heard that they could be used for session hijacking (?)
Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to escape every string you pass to the sql query, ragardless of its origin.
Even if it is the data you retrieved from your database.