Ajax requests in expired sessions?
I found an interesting issue yesterday with my Ajax’y component used for all kinds of interesting reports here. The table containing the results includes an actions panel at the bottom, which gets updated via an Ajax request every time dataset’s selection changes so that various action buttons could re-evaluate their state. The updater is created via,
This works great, but only so long as the session is not stale. As soon as session expires, subsequent Ajax request will result in a whole new copy of the home page being stuffed into the poor little ‘actionpanel’ div, and that’s not something I want to see. I haven’t given this a whole lot of thought yet as I have more pressing issues to attend to, but I’m sure I won’t be able to sleep as well knowing this is still not working quite right.
Here’s a brand new page – nothing selected,
Let’s select an item and have the action panel update itself,
Now, we’ll manually expire the session from the image and try to unselect the item to fetch a new version of the action panel,