Hi to all,
I have a request from client to catch browser closing and log in DB table user id and session lenght.
My CI version is 2.1.1 that has in config sess_expire_on_close, but in system/libraries/Session.php variable sess_expire_on_close is just mentioned as parameter and I can’t find any further use in file.
Can someone guide me how to catch browser closing and bind callback to it ?
Not possible. While you can warn a person that they are navigating away from the page and may lose what they were working on, there’s no way to do what your client is asking.