HTTP is a stateless protocol
HTTP is a stateless protocol(which means each and every connection is independant of each other.)
Without using a DB, there are a few options we could use:
Use POST/GET variables to pass info from page to page.
Use the session to store information.
HTTP is stateless – this means that when using HTTP the end point does not "remember" things (such as who you are). It has no state. This is in contrast to a desktop application – if you have a form and you go to a different form, then go back, the state has been retained (so long as you haven't shut down the application).