Session on ajax |
hi , i create a project where a type of user send data to db only in ajax (dataentry) . How can i manage session with Ajax to redirect if the session expired ? Can i set session that expire only on browser exit ?
Check whether a PHP session exists or expired using AJAX
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Thank's for reply.there Is a way tò destroy session only when closing the browser?
Right, but that is only on the web browser closing.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You can try playing around with this may get you start on building something that works.
User Login Session Timeout Logout in PHP What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(11-27-2022, 09:50 AM)InsiteFX Wrote: You can try playing around with this may get you start on building something that works. I have several project that work fine with ci4 , but everyone have normal session .This project , user side, work only on ajax and i must only destroy session on browser close For ci4 and .env file how can i set session to expire on browser closing : app.sessionExpiration = ? (11-27-2022, 10:00 AM)pippuccio76 Wrote: For ci4 and .env file how can i set session to expire on browser closing : See https://codeigniter4.github.io/CodeIgnit...references |
Welcome Guest, Not a member yet? Register Sign In |