Answer the question
In order to leave comments, you need to log in
How to keep the user logged in to the application?
I want to make a messenger in JAVA (I'm still planning how it should work). The question arose of how to keep the user authorized, that is, do you need something like a cookie at all (The server will be built on multiplexing) or just save the socket with the user's login in the HashMap (I did this when writing a chat).
Answer the question
In order to leave comments, you need to log in
Signed cookies, cookie key (the data itself is in the database), key in headers, jwt in aphid cookies headers. Choose what you want.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question