When we use ajax to update our session variable in asynchronize way, there is an issue called session race update. in simple word: when we read the session, we need to assure that the session is up to date.

this contribution is taken from http://thwartedefforts.org/2006/11/1...-php-sessions/

the only file that need to replace is catalog/include/function/session.php



More...