Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a session ID ...

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
How do I create a session ID to keep track of a user ordering items from my WEB site. I want to create my own shopping cart and then jump to the secure https credit card site.
Here is what I have so far got to the URL below
Click the Add to cart button

If you look at the customer number and invoice number it increments each time, which I don’t want to happen. I want to have multiple items show up on one order, not multiple orders created.
Its saving it to the database OK, but again it is creating a new order number for each instead of having multiple items on one order. as shown below

SessionID InvoiceNum CustomerID PartNum Description Qty Price Date Time
983220098 123920098 C39 Code 39 True Type Font 1 99.00 12/21/2001 11:57:55 AM
983220099 123920099 C39 Code 39 True Type Font 1 99.00 12/21/2001 12:27:32 PM
983220101 123920101 C39 Code 39 True Type Font 1 99.00 12/21/2001 2:19:16 PM
983220102 123920102 C39 Code 39 True Type Font 1 99.00 12/21/2001 2:20:50 PM
983220103 123920103 C39 Code 39 True Type Font 1 99.00 12/21/2001 2:22:56 PM
--------------------------------

TIA DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
IF you are referring to the IIS SessionID, You can't just create one. When you leave the site to go to your CC processing site, your session is terminated. When you return IIS creates a new one.

I see 2 ways to resolve your issue.

1) create a guid that you pass along every page via hidden form fields, or by the querystring. Use that GUID as the PK in your DB, not the ASP sessionID. In order for this method to work, you will need to have the Credit Card site redirect the user back to your site with the same QS or hidden form value.

2) Wrap the Credit Card site inside of a Frame on your site.
That way your server will still have the user in it's session context.

HTH
- J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top