CodeIgniter Forums
session expire and jqery ajax call - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: session expire and jqery ajax call (/showthread.php?tid=49603)



session expire and jqery ajax call - El Forum - 02-26-2012

[eluser]Hallas[/eluser]
Hi all,

I'm trying to figure out how to create a helper function, wich will be loaded in controller, and detect session expire for jquery ajax calls and redirect user to login page.

I try google search and found this : http://www.zadrosolutions.com/blog/ajax/ajax-redirect-to-login-page-on-session-expire-with-php/

but it's still unclear to me how to make it work.


Can anyone help please ?