I would like to know how I could do to keep the session open on my site even by closing and reopening the browser. Right now I'm studying everything that has to do with Java Servlets, JSPs, etc ...and I should create a project that aims to create an e-commerce site.I will explain myself better with regards to "keeping the session open on my site also by closing and reopening the browser": I would like to do what Amazon does more or less. Upon registration except for username, password, name, surname ... taken from the form in the database and at the time of login I take this data and i access the site. The problem is that if I close the browser I should log in again and I don't want this.As I understand it, I also need to implement a session to implement the cart where I should save the products I want to buy.So, in summary, how can I make a connection that lasts as long as I want until I press the Logout button?
This is for a university project that consists of the creation of an e-commerce site.