Home > Ask the SOA Experts > Questions & Answers > Creating a hotel booking Web application
Ask The SOA Expert: Questions & Answers
EMAIL THIS

Creating a hotel booking Web application

Michèle Leroux Bustamante EXPERT RESPONSE FROM: Michèle Leroux Bustamante

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 16 February 2004
I am developing a Web application in ASP.NET. My project is an application that supports booking hotel online. I am having the following problem: When a client accesses the Web server through a browser to book a room, he checks for available spots. As a result, the spots (if available) that he checked are considered blocked (so another cannot get them). I want to make it so that if the client leaves for another Web page or if he hasn't confirmed in 5 minutes (for example), these spots are released. How I can control this?

>
There are a number of different ways to approach a problem like this. The simplest approach is to rely on the session timeout setting, which defaults to 20 minutes (or, whatever your machine.config or web.config have set for the application). The problem with this approach is that on the one hand, you probably don't want to shorten the session timeout to 5 minutes, nor do you want to wait 20 minutes for the seats to free up.

Although you can follow the user's navigation on your site, you can't detect when they leave your site for another, so you want a model that will work for both of these scenarios. One possibility would be to add an entry to the cache for this, tied to this user's session ID, and set the object with a sliding expiry of 5 minutes. Update the sliding expiry each time the user hits a page within the workflow of this seat selection process, and be sure to gracefully notify your users of the expiry of this item when they navigate to a page that expects the seat selection to exist. Other requirements for your application design may influence alternate approaches, but this may help you on your way.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Microsoft .NET Web services
Microsoft preps .NET 4.0 - framework improves on REST, MVC, JQuery support
How do I balance throughput requirements and interoperability?
APM software traces transactions across tiers, technologies
How you can learn M Grammar for Oslo modeling
Legacy modernization opens Windows for publisher
Former .NET Web developers ride Ruby and Rails application framework
Microsoft Oslo at PDC: Dial 'M' for modeling language
Yahoo proxy fight looms
New Microsoft site for architects
LAMP coders go hybrid route
Microsoft .NET Web services Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Common Language Infrastructure  (SearchSOA.com)
Visual J#  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts