Open seanchen1991 opened 10 years ago
you can set the session timeout time somewhat like this: app.use(session({secret: '123Secret', cookie: {maxAge: 60000}})); where age is in ms
will be handled on the server side. Will be using tokens instead of sessions because angularjs likes tokens and it allows for mobile integration
We are now considering adding any event in the cart to our purchase history database with a new column "open/close or purchase status". If an item gets "checkout" then, it will close, otherwise, it will remain open
Add zip code to token, working on storing token into a cookie so that whenever user info is being called on the client side, it will refer to the cookie rather than the token
will be using localStorage instead of cookies as it is just as persistent, more secure and better supported across different platforms
Adding feature: default username is set to "Guest" and username is stored as $localStorage
Need to change userLogin to POST request rather than GET requests
If a user has logged in, they do not need to log in again upon page refresh. However, their name is not displayed in the welcome message in the top right corner. Not sure if sessions ever timeout or just remain indefinitely.