1.

How Session - Cookie Works In Php?

Answer»

When a WEBSITE open in new client MACHINE(Browser), new sessionId is created and stored in php server and in client machine (In cookie).

All DATA is store in PHP Server and cookie only have sessionId. When client send sessionId with REQUEST to the server, then server FETCH the data corresponsing to that sessionId and retun to the browser.

When a website open in new client machine(Browser), new sessionId is created and stored in php server and in client machine (In cookie).

All data is store in PHP Server and cookie only have sessionId. When client send sessionId with request to the server, then server fetch the data corresponsing to that sessionId and retun to the browser.



Discussion

No Comment Found