A session layer for web applications