2079 12

BIT301 ยท 2079 ยท 5 marks

Write a PHP program for illustrating the starting and ending of session.

Write a PHP program for illustrating the starting and ending of session. [5]

Web Technology IIChapter 10: Sessions, Cookies, and Error HandlingSession creation and initialization

HTTP has no memory, so two requests from the same visitor look unrelated to the server. A session gives them a thread: PHP generates a session id, sends it to the browser in a cookie, and keeps a matching store on the server. The