3

Someone else asked this question while back here is the question

How can I reset all devise sessions so every user has to login again?

and the answer is this:

rake db:sessions:clear

However When I do it I get this error: Don't know how to build task 'db:session:clear'

I tried doing this as well

~ $ heroku run bash

and then

~ $ rake db:sessions:clear

Still same error.

Any suggestions ?

tried these as well, still not working: ~ $ heroku run rake db:sessions:clear

Community
  • 1
  • 1
0bserver07
  • 3,390
  • 1
  • 28
  • 56

2 Answers2

0

If you are using session using client side cookies, you can simply restart your server as session ids are stored in memory in that case.

udit mittal
  • 529
  • 3
  • 14
0
  def index
    reset_session
  end
Nimantha
  • 6,405
  • 6
  • 28
  • 69
Jin Lim
  • 1,759
  • 20
  • 24