I need to use a code in JavaScript to determine a user, I decided to use his session ID. Is it safe if I expose a user’s session ID to himself?
Can he use the ID to hack a website sessions or change them?
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.
He can see the session id anyway by examining the cookies (with cookies disabled it’s usually even appended to every link as a GET argument).
So no, he cannot do anything evil with his own session id.