An example app for simulating "state" in across HTTP requests.
Ruby JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

HTTP STATE

This app demonstrates that HTTP is “stateless.” This means that your app won't “remember” anything from one request to the next. Each request must contain enough information for the app to perform its work, without any knowledge of what came before.

Read this code and try to find out how the app appears to remember who's logged in, even though we know that HTTP itself is a stateless protocol.