[solved] jQuery Ajax + Session problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: [solved] jQuery Ajax + Session problem (/showthread.php?tid=42561) |
[solved] jQuery Ajax + Session problem - El Forum - 06-10-2011 [eluser]Unknown[/eluser] On ajax calls I pass a unit var and session var by POST. It destroying the session i think because the session cookie doesnt match. Ive added the fix as per this post - http://ellislab.com/forums/viewthread/138823/ Here is the code im using - http://www.chopapp.com/#z2ujo50 Can anyone shed any light on this? This is the log DEBUG - 2011-06-10 19:07:45 --> Config Class Initialized DEBUG - 2011-06-10 19:07:45 --> Hooks Class Initialized DEBUG - 2011-06-10 19:07:45 --> Utf8 Class Initialized DEBUG - 2011-06-10 19:07:45 --> UTF-8 Support Enabled DEBUG - 2011-06-10 19:07:45 --> URI Class Initialized DEBUG - 2011-06-10 19:07:45 --> Router Class Initialized DEBUG - 2011-06-10 19:07:45 --> Output Class Initialized DEBUG - 2011-06-10 19:07:45 --> Security Class Initialized DEBUG - 2011-06-10 19:07:45 --> Input Class Initialized DEBUG - 2011-06-10 19:07:45 --> Global POST and COOKIE data sanitized DEBUG - 2011-06-10 19:07:45 --> Language Class Initialized DEBUG - 2011-06-10 19:07:45 --> Loader Class Initialized DEBUG - 2011-06-10 19:07:45 --> Helper loaded: url_helper DEBUG - 2011-06-10 19:07:45 --> Helper loaded: form_helper DEBUG - 2011-06-10 19:07:45 --> Helper loaded: is_ajax_helper DEBUG - 2011-06-10 19:07:45 --> Database Driver Class Initialized DEBUG - 2011-06-10 19:07:45 --> Session Class Initialized DEBUG - 2011-06-10 19:07:45 --> Helper loaded: string_helper ERROR - 2011-06-10 19:07:45 --> The session cookie data did not match what was expected. This could be a possible hacking attempt. DEBUG - 2011-06-10 19:07:45 --> Session routines successfully run DEBUG - 2011-06-10 19:07:45 --> Model Class Initialized DEBUG - 2011-06-10 19:07:45 --> Model Class Initialized DEBUG - 2011-06-10 19:07:45 --> Controller Class Initialized DEBUG - 2011-06-10 19:07:45 --> File loaded: application/views/unit.php DEBUG - 2011-06-10 19:07:45 --> Final output sent to browser DEBUG - 2011-06-10 19:07:45 --> Total execution time: 0.0401 [solved] jQuery Ajax + Session problem - El Forum - 06-10-2011 [eluser]Unknown[/eluser] Solved it - i had linked a wordpress header files in the index.php which was clearing the cookie every time |