Welcome Guest, Not a member yet? Register   Sign In
How to delete some data when browser close?

I set this one in my config file

$config['sess_expire_on_close'] = TRUE;

now browser closed that time session destroy successfully,

but i need some table data also updated using session variable(before session destroy)


Ravikumar R

There's no server-side trigger for when a browser closes. You'd either need to use Javascript (which is unreliable because users can turn it off and manipulate it) or delete it when the user comes back when you've seen that their session is gone now.

Theme © iAndrew 2016 - Forum software by © MyBB