Add code for performances problem (ajax pages and php session). references #46