After working a bit with cookie related problems . Something struck me .
Why do we need to do all these gimmicks of maintaining cookies or session data ? Was wondering if this is so common why cant this be done by default by system ? I am lazy ...
But I remember that I don't do this job of maintaining session data in a number of places . For example SSH . When I do ssh I just do ssh and I am connected . I am not bothered of all these details like session . System takes care . Then why should I do these things in web sites .
Ya then opened college networking book by Forouzan . Started reading and found that http was a stateless protocol . Ssh is stateful . Ahh ...
Then why are we using http protocol . If not why not use some other protocol which is stateful .. Or why don't we change http to stateful . Are we loosing anything out of doing this ? Why is it not done ?
I searched at many places but could not get a solid convincing answer . But every one said this "To make http protocol simple " .
I cannot understand how this makes simple .I don't know the magnitude to which it is simplified by keeping http stateless ?
Can you direct me to some books which can explain this final question how much http is simplified by keeping it stateless ? If not Can you give an answer so easy to understand that even a 6 year child can understand .