Jump to content

sessions and ajax.


ToonMariner

Recommended Posts

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.