Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between stateless, statefull, session less, sessionfull?

Status
Not open for further replies.

swathi

Programmer
Mar 10, 2000
1
US
<br>
<br>
Hello,<br>
<br>
<br>
Can someone clarify the difference between<br>
the following :<br>
<br>
a) Stateless<br>
<br>
b)Statefull<br>
<br>
c) Sessionfull<br>
<br>
d) Sessionless<br>
<br>
Also, Which one of these is used by Apache Server?<br>
<br>
Thanks in Advance.<br>
<br>

 
My understanding stateless and sessionless are equivalent terms, as are statefull and sessionfull.<br>
<br>
HTTP is a stateless protocol. You request a page and the page is served. You request another page, and another page is served. The HTTP server does not know that there is any link between the two requests. It has not saved your &quot;state&quot;.<br>
<br>
To work around this, programmers (such as the gurus here at Tek-Tips) can do clever things with CGI scripts that can retain state. Check the link at the top of this page and you'll see various &quot;ID&quot; variables passed in as part of the link. One of these (CFID I think) is used to retain your state at Tek-Tips and keep track of where you've been, who you are, what threads you've read, etc so that things like the &quot;New&quot; indicator can be updated.<br>
<br>
Therefore, Tek-Tips would be called a &quot;statefull&quot; site using your terms.<br>
<br>
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top