473,396 Members | 1,975 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,396 software developers and data experts.

New key within session

I am working on an e-commerce application where product is being delivered on a periodic or subscription basis. I have used an application variable as a foreign key to tie products together that are contained in a single order. However, the user may want to make a second (or third) purchase delivered on a different schedule, which requires a separate order (separate billing) —without starting a new session and having to re-login.
So…What di use as a second key?
I am thinking of taking the identity of the last product ordered and using that for the next set of products but I am not sure how to implement that. Nor am I confident that that is the best solution.
Any ideas?
BTW: I am picking up the slack for a fired programmer and am working well outside my skill set. So please dumb-down your musings.
Mar 13 '09 #1
2 1415
jhardman
3,406 Expert 2GB
Sorry it took me a while to visit the forum. Donohue, I would definitely move away from application variables for this type of thing. It seems to me that this needs to be handled in a database. Does that help?

Jared
Mar 19 '09 #2
I ended up by creating a separate table that incremented both on Login and check out and used that identity for my foreign key. That way they could check out without logging out and be redirected to the beginning of the product selection process.
Thanks for your insight.
Mar 19 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Fox | last post by:
Hi, I am working on a project which used dictionaries. I am having to remake part of this and have no experience with the scripting dictionary. I need to see how to create multiple...
4
by: Gregory Pearce | last post by:
Hi, Can anyone tell me if it is possible to access a session within a class? I have created a class that has if ((Session == null) etc.... However upon building the...
5
by: Jeff Johnson | last post by:
I'm using forms authentication to protect a subfolder within my site. I've got it working fine except for two issues: (1) When I do a RedirectFromLogin page I have to put a cookie path ("/"...
0
by: Dax Westerman | last post by:
I have a site that I'm trying to migrate to ASP.NET from ASP, and the foremost stumbling block I'm hitting is session state between the ASP and ASP.NET applications. In order to access this...
4
by: thdevdex | last post by:
Needless to say I'm new to .Net. I'm trying to set Session variables from within a method within a class. (Name "Session" is not declared) is the message I get while typing in the code. I...
7
by: Sky | last post by:
What I have currently: I have a user control called mod_container.aspx that is basically two divs -- the top a toolbar, that expands/collapse the second div which can contain other...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
2
by: Ben Fidge | last post by:
I've split my application up into an ASP.NET project and several class library dlls. From within these dll's I want to write information to a log file, and each line needs to have the session id...
2
by: Gregory Pearce | last post by:
Hi, Can anyone tell me if it is possible to access a session within a class? I have created a class that has if ((Session == null) etc.... However upon building the...
1
by: ranger979 | last post by:
I am using the emptydatatemplate for a gridview control. I have a detailsview control within the emptydatatemplate. In the detailsview I have another templatefield that contains an imagebutton...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.