[eluser]thinkigniter[/eluser]
Ok, A a general rule...
1. Javascript is a Browser side programming languauge
2. PHP is a server side {before browser loads} progamming language.
So, if php session variables will update when the page refreshs or reloads.
I sudjest you use a the EXT ajax object to send session timeout information to another CI controller.
That then kills the session information then returns true so that the EXT object
refresh/reload page -> N0 session -> logout