Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to replicate "Remember me on this computer" functionality
  • How would I make the "[] Remember me on this computer" checkbox work using SimpleAuth? I can't find a mehod to control session timeout for the logged in user.
  • Hello Since I'm on 1.0.1 version (not dev) I ported this function from development version:
    http://scrp.at/at7 I changed expire_on_close to true in session.php. Later, I the login function I set up the remember_me to true (Session::set('remember_me', true)), if it was checked.
    And check later it inside the base controller: if (\Session::get('remember_me', false) === true)
    {
    \Session::instance()->set_config('expire_on_close', false);
    }
  • cool... i'll try it

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion