A. Hack index.php and avoid storing the session if request is ajax request (X-Requested-With http header is quite common)
B. make sure all views you use this way properly exit's in the end of the view php code so that session code never run on them. Try something like this: