Add optional merging of the session data on set(). This prevents data getting  lost when multiple asynchronous ajax requests are fired at the server.