Alex Rivera | Logout

How do PHP sessions work when cookies are disabled?

Asked 2009-03-05T08:27:18.857
18

I've tried to research this mechanism but only find hints and these are not very consistent. How is the session _id sent to the browser and how is the browser instructed to return it when the user requests a new page?

Thanks, Chris

Edit
Report

1 Answer

0

Sessions work by creating a unique id (UID) for each visitor and store variables based on this UID. The UID is either (1) stored in a cookie or (2) is propagated in the URL.

answered 2012-11-30T11:03:37.330

Your Answer