Remember Me facility on login?
Using SecurityAssist (non-MySQLi whilst we wait for the promised upgrade) and I'd like to include a "Remember Me" function so that a user is kept logged in but I don't see that within the extensions options.
Any advice on how to implement?
I looked at this post from Jason...
the basic gist is to add the checkbox for remember me and auto log in, set the checked value to 1 for each.
add set cookie behaviors to store the entered Username, Password, and Remember Me values using the remember me element as the trigger. ad another set cookie behavior to store the auto login value as a cookie using the auto login checkbox as a trigger.
then add another Authenticate user behavior using the auto login as the trigger, and use the Username and password cookies as the login values.
If you look at a login page created by the wizard for reference, it will make more sense.
Firstly... "...add the checkbox for remember me and auto log in, set the checked value to 1 for each."
Why would you have two checkboxes? I've not experienced that on any website with a login facility, simply a single "Remember me" checkbox usually - am I misunderstanding this?
Secondly... "add set cookie behaviors to store the entered Username, Password, and Remember Me values using the remember me element as the trigger."
When I move to set the cookie values, there is no option in the list of triggers relating to the checkbox on the page. There is only:
any form post
before page load
current page submit
Button: signinBTN pressed (signinBTN being my form submit button)
I'm clearly not understanding the process here. Hope someone can help.
Thank you.
NJ