Tuesday 2 August 2016

REQUIREMENT OF SESSION

HTTP PROTOCOL:
    HTTP is a HYPER TEXT TRANSFER PROTOCOL . It is used to deliver data on the world wide web (www),data may be HTML files,image files,query results, etc but HTTP is the STATELESS protocol because each command we request is executed separately, without any knowledge of the requests that were executed before it IN SHORT HTTP protocol don't have brain .


DEMONSTRATION OF STATELESSNESS OF HTTP


EFFECT OF THAT :
for example-
  •  if we login to any social n/w site like facebook or any other sites
  • we put our username and password and hit enter if we authentic then we login 
  • if we rely only on HTTP protocol if we send same request then we have to again enter the user name and password for authentication purpose



HOW TO REMOVE THAT PROBLEM:

by introducing the SESSION ID



DEMONSTRATION OF SESSION ID





No comments:

Post a Comment