PHP Session(chp 12) - How to set "stay connected" functionality?
i'm an owner of this book since 2009, and i've implemented the session solution, found in the chapter 12, into my website (still in developing).
I've made some tests and i notice the line "session_set_cookie_params" in the HTTPSession.php file.
I know that this function keep alive the current session even if the browser is closed. Well, this is a great thing, and it's just what i need, but what if i want to let the user choose if keep alive the connection or not through a checkbox before the login?
I've tryed to make some adjustments but i can't figure out how do this...
Is there a way to implement this functionality?