ToonMariner Posted November 23, 2006 Share Posted November 23, 2006 OK this driving me crazy.I have a shopping cart that I am adding ajax functionality to. The cart functions brillinatly without javascript but I want to improve the clients experience.Anyway I have built a cart class and a page that constructs the html for the div that shows its contents - these are the same scripts called if js in on or not (ajax just removes all teh rest of the processing for the whole page.) Now the ajax request reports that a session variable 'cart' has been constructed and serialized. Unfortunately any subsequent request sees the sessions revert to one created before the ajax request (if it was present) or simply disappears.Could anyone please let me know what they think is going on; and if you need to see some code let me know - there is a fair bit so I don't want to drown your eyes just yet. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 23, 2006 Author Share Posted November 23, 2006 Its OK! I forgot to use session start in the script the ajax request calls. 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.