How can Javascript be prevented from accessing PHP cookie data?

RinaS

New Member
(Taken from a job interview)Which of the following answers are correct ?
  • Use the \[code\]httponly\[/code\] parameter when setting the cookie
  • The user must turn off Javascript support
  • It's a cookie setting in the browser
  • Only the issuing domain can access the cookie
  • One is on the client and the other is on the server, so it's not an issue
 
Top