Hello,
I know 2 ways:
1. use
GUID
as
Session
and store it in database as a code
For example:
Select * From Question
Where Code = @UserID
2. After registering user, before starting the exam, store user's information in database with an ID then get the ID (How?
Scope_Identity
)
You know the ID in database must be
Identity(1,1)
Then:
Session["ExamineeID"] = gotID;
Then you can request for privious questions with
ExamineeID
.
I prefer the second way. I don't trust to
GUID
very much ;)