0 12

Web Technology II05 marksUser data maintenance with sessions

What is session? Write a PHP program for maintaining user data with sessions.

What is session? Write a PHP program for maintaining user data with sessions. [5]

HTTP is stateless: each request stands alone and the server has no memory of the one before it. A session supplies that memory. When a session starts, PHP generates a long random session id, sends it to the browser in a cookie, and keeps a matching store on the server. On the next request the bro...