I have a webapp with authentication. Sessions are stored in the DB... session ID is stored in the cookie. Cookie session ID and DB ID are validated on each call and session ID is regenerated...
If I do an ajax request with 2 function calls in it the latter call uses the same cookie (with the old session ID) that the first one did. As soon as the call is accepted by the server side script the session is regenerated and the cookie is updated.
What happens is that the session ID in the second request is invalid (expired) and I get logged out...
How can I resolve this situation?
Thanks!