Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Complete Tutorial on Sessions and Cookies

Share this post!
 Vote this!

First of all, what is meant by a 'session'?

A 'session' is the word used to describe the period of time from a person sits down by his computer and starts surfing, until the time he's finished, turns off his browser and gets on with his real life.
From a websites point of view, a session starts from the moment a user enters that site, navigates inside it and finally departs to another more interesting site. If he returns again, a new session has begun. It's not a continuation of the old one! However, there are ways to make the server recognize the visitor (ah, it's that guy again) and continue using the preferences that was set during his last visit.

Internet uses a "stateless protocol" through HTTP. That means a server doesn't know, or keep track of, who's asking for a page or where that request is coming from. If three different persons from three different places in the world, visits the same site at the same time, and each view the same two pages, then the server sees that as 6 individual requests for pages from the server.

More...

0 comments:

Post a Comment