http - stateless protocol and stateful protocol -


how understand stateless protocol , stateful protocol? http stateless protocol , ftp stateful protocol. web applications requiring lot of interactions, underlying protocol should stateful ones. understanding right?

since you're asking web application, protocol stateless -- protocol web http (or https), , that's wrote.

i think you're thinking of providing state mechanism in web application itself. typical approach create unique identifier user's session in web application (a sessionid of 1 form or common practice) handed , forth between browser , server. that's typically done in cookie, though can done, bit more hassle depending on platform/framework, on url well.

your server-side code stores stateful information (again, typically called user's session) wants using sessionid up. http traffic hands sessionid. long identifier there, each http transaction independent of others, hence protocol traffic stateless.


Comments