GE interview question

How do you maintain state in web apps