Depends alot on what your trying to do. This is really a loaded question caz there are many answers.
On the server, some things might be kept as part of the session or in a mysql database. or if it’s a browser based web application, you might store some data in a browser cookie.
That’s about the best answer you can get with the info you’ve given.