0

When you exit, the device destroys the entire session at once. But I need one session key not to be affected (in other words, after logging out to have 1 key in the session). How to do it? Of course, I understand that somehow you can save the value in a session somewhere else, and after the release again, write it down. But maybe there is a more elegant solution?

  • https://stackoverflow.com/questions/10153040/stop-devise-from-clearing-session See the answer with maximum votes, not the one that is marked as accepted. If you need to clear the whole session but one value, see the `@manafire`'s answer. – chumakoff Apr 09 '18 at 09:14
  • thanx, solved problem! –  Apr 09 '18 at 10:06

0 Answers0