client selects 3-4 items and place them in his cart. If I stored these informations in the session, I lost them when client log out. Saving them in the DB is so expensive and useless. So I store them in the cookies?
"Saving them in the DB is so expensive and useless" - can you elaborate this? Why expensive? And why useless? Which information you think should be stored in the db?
Also one important thing: client can turn off cookies. In this case sessionId (plate with unique name) is passed as request parameter, one in my-site.com/some-resource?sessionId=123455667
Обсуждают сегодня