weso Posted September 5, 2009 Share Posted September 5, 2009 I have the same problem that is mentioned here http://www.phpfreaks.com/forums/index.php/topic,262418.0.html. The only thing is I can't get it to work. The only difference is that I'm using jquery. Quote Link to comment Share on other sites More sharing options...
kratsg Posted September 5, 2009 Share Posted September 5, 2009 I'm not completely familiar with JQuery. However, having manually built a bunch of AJAX requests and having done similar things with sessions and so forth, I'll offer some insight. Sessions and Cookies can be accessed based on whatever user has executed the JavaScript. The first thing is to make sure they even have those cookies. As a test, you can set a cookie when they visit the page with the javascript, then have the AJAX call get the PHP script to echo out the values of those cookies for you and send it back to see if it works. If this doesn't, then it's not really a problem with JQuery (it helps to isolate whether it's JQuery that's the problem, or perhaps your cookies). Let me know how this first test goes. Also, can you post some of the example code for both your AJAX JQuery requests and the PHP page that you're calling just to give the rest of us some idea of what you're working with? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.