• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session class & AJAX

#1
[eluser]ReGeDa[/eluser]
Hi, guys!
I have some problem.
I send 3 requests to server via ajax in same time. 'session_id = 4c19cf6d7ecdd844649706bf16eeee88' for all. But first request updates it and fetches 'session_id = f457c545a9ded88f18ecee47145a72c0'. Other 2 requests go with old 'session_id' and fetches error data.
My session class store session info in database in 'private' field Secure Native Session.
How it solved?
Maybe create new config for session 'no_update'

#2
[eluser]ReGeDa[/eluser]
I solved it with add sess_revalidate_id config and edit my http://codeigniter.com/wiki/Secure_Native_Session/


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.