app/models/user.rb
# Remember a user for future login.
Remember a user for future login.
Remember a user for future login .
def remember!(cookies)
    cookie_expiration = 10.years.from_now
    cookies[:remember_me] = { :value   => "1",
                              :expires =>  cookie_expiration }
    self.authorization_token =  unique_identifier
    save!
    cookies[:authorization_token] = { :value   => authorization_token,
                                      :expires => cookie_expiration }
  end
def remember! ( cookies ) cookie_expiration = 10 . years . from_now cookies [ :remember_me ] = { :value => "1" , :expires => cookie_expiration } self . authorization_token = unique_identifier save! cookies [ :authorization_token ] = { :value => authorization_token , :expires => cookie_expiration } end
Remember a user for future login.
Remember a user for future login .
cookies
<not_specific>