p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional PHP6 (http://p2p.wrox.com/book-professional-php6-496/)
-   -   PHP Session(chp 12) - How to set "stay connected" functionality? (http://p2p.wrox.com/book-professional-php6/91535-php-session-chp-12-how-set-stay-connected-functionality.html)

DMatt November 22nd, 2013 09:04 AM

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.


All times are GMT -4. The time now is 01:56 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.