|
Recent
Articles |
$65m, Bad Use Of Javascript Javascript is one of my favourite web technologies. When I stop to think how the Internet would be without Javascript I can't help but think how much less productive and enjoyable my days would be. Take for instance...
Speed Up Page Load Times W/ Mod_deflate In a report from November, 2006 Akamai and JupiterResearch concluded that 4 seconds is the threshold an online shopper is willing to wait for...
LAMP Development - Backbone Of The World Wide Web The World Wide Web has always been an entity that needed a little bit of help in order to run effectively. As long as there has been the Internet, there have been tools to help keep it running well. More times...
Frames And Model-Glue Dan asked the following question about frames and Model-Glue: Basically, my question is about using frames within my application. I basically want to use a a frame for my avigation that never gets reloaded and...
How Many Rows Of Data To Use With Spry Bob sent in an interesting email to me: Ray, we're about to use spry on one of our sites but i was wondering what you would recommend to be the max records to return in the XML? We may have 2,000 records returned at...
SEO-Friendly Ecommerce One of the major drawbacks when taking the dynamic approach to web development is the resulting product not being optimized for the search engines. A number...
SES Session: Fun With Dynamic Sites The idea that your site has to be static, or look static, to do well in search engines is getting to be a thing of the past. This session covered the myths and current issues that people are facing with dynamic websites.
Is My Perl, CGI, MYSQL Site Obsolete? That is the question that one person asks in the web programming discussion forum at WebProWorld. Member ericjw says:I am not a back-end person, but I try my hardest to understand. I have recently been considering...
|
|
|
03.21.07
Spry 1.5 - New "Session Expired" Support
By Raymond Camden
I blogged about the Spry 1.5 preview a few days ago and finally made time to whip up a quick demo of one of the new features - Session Handling
First and foremost - let me explain exactly what is meant by this. As you know, ColdFusion can't alert you when your session expires. It is a server side event. So obviously Spry can't get the notification from the server.
Instead what Spry supports is noticing a particular result from the server. So imagine a site with a login system. Typically you hit the site. Log in. Access the data. Now imagine you sit there on a Spry-ified page and let your session time out. You click to load a new page of AJAX data and Spry throws an error. Why? Because the back end returned a login form instead of a proper XML (or JSON) result.
So what to do? Well you now return a message to your AJAX requests. This message is the literal string: session expired. It doesn't need to be in XML. If Spry sees this as the result of a data request, it will then fire off an event. So consider this simple page:
Continue reading this article.
About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
|