lib/authlogic/session/cookies.rb
# Allows you to set the remember_me option when passing credentials.
Allows you to set the remember_me option when passing credentials.
Allows you to set the remember_me option when passing credentials .
def generate_cookie_for_saving
            value = format(
              "%s::%s%s",
              record.persistence_token,
              record.send(record.class.primary_key),
              remember_me? ? "::#{remember_me_until.iso8601}" : ""
            )
            {
              value: value,
              expires: remember_me_until,
              secure: secure,
              httponly: httponly,
              same_site: same_site,
              domain: controller.cookie_domain
            }
          end
def generate_cookie_for_saving value = format ( "%s::%s%s" , record . persistence_token , record . send ( record . class . primary_key ) , remember_me? ? "::#{remember_me_until.iso8601}" : "" ) { value : value , expires : remember_me_until , secure : secure , httponly : httponly , same_site : same_site , domain : controller . cookie_domain } end
Allows you to set the remember_me option when passing credentials.
Allows you to set the remember_me option when passing credentials .