on-internet
← Community

Session not updating after some ajax call requests

Stack Overflow ·

I am updating a session using an ajax call. PHP public function mymethod() { //Session Increament $addrowcount=1; $addrowcount +=$this->session->userdata('row'); $this->session->set_userdata('row', $addrowcount); echo $addrowcount; } jQuery jQuery.ajax({url: "myurl.com/mycontroller/mymethod/",dataType: "json", async: false, success: function(data){}}); But the session is not updating or not getting increased after 20 to 23 ajax calls.

Comments

Sign in or sign up to comment and upvote.

No comments yet.