Solved

Storing Session Data

Posted on 2011-09-23
6
265 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 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