F
F
FMars2015-11-11 12:10:27
Angular
FMars, 2015-11-11 12:10:27

Is it smart to store tokens in cache?

Let's say I gave the token to the client. Where is the best place to store it on the server now? In the database or is it better in the cache?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Сергей Протько, 2015-11-11
@Fesor

Где лучше теперь хранить его на сервере?

Лучше вообще не хранить его на сервере. Используйте JWT.

Иван, 2015-11-11
@LiguidCool

Токен вещь временная, так что лучше в кэше.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question