Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 11-08-2005, 10:13 AM asp.net sessions
Novice Talker

Posts: 9
Trades: 0
Hopefully this won't be construed as spamming because i asked a similar question in the PHP forum but this time i need ASP expertise. Anyway, here goes:-
This is what i posted in the PHP forum

"I've developed a shopping cart with PHP and MySql which works fine. Once an item is added to the cart it is withdrawn from the database instead of leaving the withdrawing till the checkout stage. This avoids shoppers all choosing an item that may be the last in stock. The only problem is if the shopper that has the item in their cart decides not to buy and leaves the site without removing the item from the cart or the session times out, the item hasn't been purchased but also hasn't been put back in the database. What can i do to get round this?"

I had some very useful advice which leaned towards withdrawing the item at checkout for simplicity reasons. If i had the time i might venture into the other recommendation of writing a script to check the cart if the session timed out or the browser closed without a purchase and replenish the database with unpurchased items.

What i want to know is does asp.net offer any different sultions to this problem or would i be left with the same options?
phouse is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2005, 04:18 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You should be able to use "Session_OnEnd" in the global.asa file to run a command that puts the item back in the DB when the session expires.

http://www.w3schools.com/asp/asp_globalasa.asp
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to asp.net sessions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09213 seconds with 12 queries