473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

WebForms and timeouts / loss of session data

Hi - I need to write a basic order page for our web site. It is very
straight-forward, in that we don't need a whole "shopping cart" system.
Instead we just need a list of products displayed with a quantity field, and
when they submit the form it then collects payment info, then they submit
again and it charges their card. I plan to use a third party component to
handle the credit card charging so that should be pretty easy.

My main concern is how to best make a simple web form that the users can use
to submit their orders. I have studied web forms and it looks ideal except
for one MAJOR catch - the posted back data seems to timeout after x minutes.

For example assume page 1 of the order form asks for quantities of each
item. Then that is posted back and they get the customer information page
next. Now, if they sit on that page for say an hour before doing anything
when they continue and submit the form I think all the previously posted
data is lost because the session times out, right? I assume I can bump the
timeout, but what if they go home for the night and continue the next day or
a long scenario like that?

With this in mind, it seems like the traditional approach of just using
regular home grown forms and managing posted data manually (i.e. the type of
approach taken with classic ASP) has a great advantage in this regard. Am I
right, or am I missing something? How can you best account for the
possibility of long delays between each postback?

Also while we are on the subject; can anyone recommend a sample that
demonstrates how to make a basic ordering system like this. Like I
mentioned above I am not looking for anything complex or anything that
allows them to browse and add items to a cart and all that. Just need to
have them say I want x of these, and x of those and here is my credit card.

Bill
Nov 18 '05 #1
3 1399
On Thu, 15 Jul 2004 23:16:23 -0400, Billy Horne <bh***@hornspam.com> wrote:
Hi - I need to write a basic order page for our web site. It is very
straight-forward, in that we don't need a whole "shopping cart" system.
Instead we just need a list of products displayed with a quantity field,
and
when they submit the form it then collects payment info, then they submit
again and it charges their card. I plan to use a third party component
to
handle the credit card charging so that should be pretty easy.


Yes, you'd need a home-grown solution. The problem with this scenario is
what about the pricing, etc. of the products I've selected? What if they
change either since I left the browser, or before I then end up checking
out? Or quantities, do you hold them for me, or could they get bought
while I'm gone? How do you handle that?

BTW, I've never done ecommerce or needed this 'perpetual session', so
that's the reason for the questions...

This may be some overkill, but I'm sure there's some pointers you can find
here:
http://asp.net/Default.aspx?tabindex=8&tabid=47

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
> Yes, you'd need a home-grown solution. The problem with this scenario is
what about the pricing, etc. of the products I've selected? What if they
change either since I left the browser, or before I then end up checking
out? Or quantities, do you hold them for me, or could they get bought
while I'm gone? How do you handle that?
These are good questions - thanks for asking. Our prices have not changed
in over a year so I am not concerned about a price change. We sell software
ESD so there is never a shortage or inventory to worry about. So there is
no need for me to worry about those things.
This may be some overkill, but I'm sure there's some pointers you can find
here:
http://asp.net/Default.aspx?tabindex=8&tabid=47


Thanks for the tip but definately overkill - no need for a whole shopping
cart app - just a simple step 1) pick your quantities and items from a list
on one page and submit, 2) enter your info and cc, 3) order confirmed.

Its hard to imagine that all the flexibility and power of webforms goes
right out the window if you need to make sure a user's session will not time
out between postbacks as they move from page to page in the order system,
like should they go to lunch in the middle or go home for the day and try
and continue the next day. I would think there is a better solution than
doing it the old-fashion class ASP way whereby you have the values passed in
via hidden form fields individually.

I was looking forward to the power of web forms and not having to worry
about all that myself, but its looking like I have to do it myself the hard
way. Bummer... Anyone have a solution for this that can still use
webforms?
Nov 18 '05 #3
Hi Billy:

Its hard to imagine that all the flexibility and power of webforms goes
right out the window if you need to make sure a user's session will not time
out between postbacks as they move from page to page in the order system,
like should they go to lunch in the middle or go home for the day and try
and continue the next day.
It doesn't have to be that way if you keep session state in a
database, which I realize is asking a lot if you are trying to keep
the application as simple as possible. Still, the option exists and
it's easy to configure - no code required.
I would think there is a better solution than
doing it the old-fashion class ASP way whereby you have the values passed in
via hidden form fields individually.


Unfortunately this is the way the web works. Web forms do a nice job
of abstracting away this detail so you don't need to know this is
happening underneath.

--
Scott
http://www.OdeToCode.com

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: db_guy | last post by:
Hi, we have a php-based application that is hosted by Yahoo! Webhosting. Ever since the application was created, it has been plagued by periodic session data loss. Here's a typical example: We...
3
by: Netserver | last post by:
Hi have a question hope there is a simple answer. I want to enter data in to 2 arrays from several webforms in project and be able to recall that data from any of the webforms, other then using a...
2
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
2
by: Piotr Karwatka | last post by:
Hi! I have a little problem an qeustion. In .NET Windows Forms I can do something like that: - i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd form I have Button1...
8
by: Tim W. | last post by:
Chaps. We are working with SQL-Server based Sessions in the following environemtn: Win-Server 2K3 incl. IIS, Dot Net Framework 1.1, SQL2K SP3a, German. We are defining a Session-Variable...
2
by: Fraijo | last post by:
how can i disable session timeouts without affecting any program codings?
2
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this...
2
by: jobs | last post by:
I've got a masterpage with a custom control that has a calendar. when dates on the calendar are selected, it sets a session variable. that calender is on every page via the master page. In the home...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.