I'm not sure how your sessions are set up, but if done correctly you should be able to destroy the session (thus forcing the user to re-log in on next action). Given that their account has been disabled, the next login should also fail.
On Thursday, 28 June 2012 03:35:27 UTC-4, Ruby-Forum.com User wrote: > > Hi, > I have a problem with blocking user as follows:- > > We have a Admin Panel from where Admin can block the user which is > working fine. > Suppose the user "[email protected]" is login and he is doing spam on our > site. Then Admin has decided to block that user. Admin blocks that user > but the user hasn't logged out yet due to that he still can do Spam the > site. > > How can I fix this? I do not want to add any filter for each request. > > Is it possible to get the session of that spam user and then reset that? > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nRADAOT59L4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

