Solved

Storing Session Data

Posted on 2011-09-23
6
263 Views
Last Modified: 2012-05-12
I have an application that I was asked to create with some weird requirements. I was asked to have a user schedule for classes and then once they are finished scheduling for classes they have to click on the "Register" button to submit the classes. However, they want me to have the user go through signing up for classes before they even have an account or can login. To me it's backwards but they don't want users to login just to see what's offered in the event that they don't want to register becuase nothing interests them.

I need to collect a value from a DropDown Control. But most importantly I have no idea at that point the users name, ID, etc.. to store that into Session. I wont know any of that until they sign in or create a new account. How can this be achieved without loosing their classes they schedule for?
0
Comment
Question by:asp_net2
  • 4
6 Comments
 
LVL 8

Accepted Solution

by:
PeteEngineer earned 500 total points
ID: 36588923
Could you clarify a bit ...i didnt understood your language ,,
0
 
LVL 4

Author Comment

by:asp_net2
ID: 36589154
Sorry, I will put into steps below:

Step 1: User select a Course Name from ListBox Control (Not allowed to user DropDown Control) and once they select a Course Name a Description of that course will appear below into a Label Control along with a GridView Control that will display the scheduling information.

Step 2: Below all of that information is a button labeled "Register". Once they click register button they are asked to create an account (first & last name, email, etc...) or sign in if they currently already have an account. If they do not have an account then once they click on the button that data is then submitted to the database. I need to retrieve their unique ID after they completed with a new user signup and store it into Session and then redirect them back to page on Step 1 and start that process all over again but this time I have their unique ID which I will call their application ID and so when I select a course to signup and then click the register button that information then goes into DB.
0
 
LVL 4

Author Comment

by:asp_net2
ID: 36589173
Also, I'm going to guess that some type of check needs to be performed on the Button Click Event that checks to see if a user has an existing unique ID and if not redirect them to a page that will give them a choice to create new account of sign in. Either option I need to collect their unique ID from when they create an account or when they sign in and then store that unique ID into session for later use.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 4

Expert Comment

by:jmnf
ID: 36589821
I used GET from a form once in a Wordpress blog to send data to another page that then saved it into a database.

I am attaching 2 files with a working example.

If you don't want the data to be seen in the url, use POST in the form method, but to parse that data you will most likely need a server side script.

REFERENCE AND HELP:

http://www.w3schools.com/html/html_forms.asp

http://www.w3.org/TR/html4/interact/forms.html        
send.html
receive.html
0
 
LVL 4

Author Comment

by:asp_net2
ID: 36590437
@jmnf

Not what I'm looking for!
0
 
LVL 4

Author Closing Comment

by:asp_net2
ID: 36961685
Expert never followed through with post.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now