Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Locking A Session

Posted 07 Apr 2004 20:09:10
1
has voted
07 Apr 2004 20:09:10 Steve V posted:
Hi,

I have a site that allows clients to post Ads, Upload Pictures and Pay for the service based on the Number of Weeks they require.

Here is my problem.
I have noticed that clients will place ads for a 2 week term, go to pay for the Ad, with the invoice page open, they will open a new window, MODIFY the number of weeks the Ad will be running, THEN go back to the invoice page and complete the Payment.

RESULTS:
The client Paid for 2 weeks, BUT 6-10 or more weeks of advertising.

How do I fix this problem?
I use MSSQL database with DW and ASP pages.


Please help

CASH reward through PayPal for a SOLID solution.


Thanks to all

Replies

Replied 08 Apr 2004 02:47:45
08 Apr 2004 02:47:45 Phil Shevlin replied:
Are you using querystring to pass info from page to page? Its a bad idea to expose stuff like that in a querystring. pass it use a form variable instead.

if thats not the problem, then I'd probably need to see more of your setup to make a suggestion.

But (just a thought), I assume you create a sess var to hold "2" (weeks). Where you create this sess var instead of:

session("numberofweeks" = request.form("term"

if (session("numberofweeks" = "" then
session("numberofweeks" = request.form("term"
end if

This way it only creates the session when none previously existed. However a problem will occur if they wanted to change their mind on the term. You'd have to create a method specifically for dealing with that.

Reply to this topic