How PHP sessions work


Most of the developers know how to work with PHP Sessions, but don’t know or don’t care to understand how PHP manages to make sessions work.

HTTP is a stateless protocol, due to which its is unable to understand subsequent requests from the same user/client. It considers all requests as “NEW”. So to manage this ‘state’, Sessions and cookies come into the picture.

Please read more over here How Sessions work in PHP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: