employer cover photo
employer logo
employer logo

Avancer Software Solutions

Is this your company?

Avancer Software Solutions interview question

What’s the difference between a cookie and a session in PHP? What’s the difference between the include() and require() functions?

Interview Answer

Anonymous

5 Mar 2019

Major Difference Between cookie and session Data in cookies is stored in local machine or user computer or browser But Data in session is stored in server Session is more secured than cookies. Difference between include() and require () function If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop.