View Single Post
  #1 (permalink)  
Old November 22nd, 2013, 09:04 AM
DMatt DMatt is offline
Authorized User
Points: 152, Level: 3
Points: 152, Level: 3 Points: 152, Level: 3 Points: 152, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2010
Location: Bra - Italy
Posts: 36
Thanks: 1
Thanked 1 Time in 1 Post
Question PHP Session(chp 12) - How to set "stay connected" functionality?

Hello,

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?

Thank you.