to manage both in backened?
Session is manage by backend and cookie by frontend
Cookies and session are different things. Cookies are stored on the client side, the session is stored on the server. Your session is stored on the server until you close the browser (maybe). You can (possibly) reconfigure the behavior, and keep the session as long as necessary (but I'm not sure). A cookie is used to ensure the ability to log in many times without entering a password (not only, but you have the same login service). "Using cookies, you can emulate a session over the HTTP protocol. Briefly, the session emulation principle is as follows: on the first request, the corresponding cookie value is returned, and each subsequent request reads this value from the HTTP_COOKIE environment variable and is processed accordingly."
Обсуждают сегодня