Hey everyone,
I am having a problems where I have created a log in page for
representatives to take a test. The page creates rep cookies that, by the
time the menu page is reached, have jumbled each client's variables to
someone else's. For example, Steve and John and Sally log in and hit the
menu page and the menu page displays johns name on Sally's computer, Sally
might also display "Sally" and and Steve has himself too. But as you can
tell this makes for terrible inserts and test taking. So I am looking for
some suggestions... here is the code:
------------ Log on Page ---------------------------
<cfform action="repverification.cfm" method=post>
<h1>Please enter the following information:</h1>
<p> <br>
<table width="75%" border="0">
<tr>
<td width="14%">Name: </td>
<td width="86%">
<cfinput type=text name="RepName" size=20 required="Yes"
message="please enter your name">
</td>
</tr>
<tr>
<td width="14%">ID:</td>
<td width="86%">
<CFinput type=text name="RepID" maxlength="5" message="Your ID must
be 5 digits in length" size=20 required="Yes"> <b>(First 5 digits of
SSN.)</b>
</td>
</tr>
</table>
<p><br>
<input type="submit" name="Submit" value="Submit">
</cfform>
------------ This is the verification page's code: --------------
<cfapplication name="PerfTrack"sessionmanagement="Yes">
<cfcookie name="repname" expires="NOW">
<cfcookie name="repid" expires="NOW">
<cflock name="repvars" timeout="60" throwontimeout="Yes" type="EXCLUSIVE">
<CFcookie NAME="repname" VALUE="#form.repname#" EXPIRES="2" >
<CFcookie NAME="repid" VALUE="#form.repid#" EXPIRES="2" >
</cflock>
---- and the menu just displays their name, this is a basic example so as to
pare you a lot of verifying ----
<cfoutput>
Welcome Back #cookie.repname# your ID is #cookie.repid# #cookie.cftoken#
</cfoutput>
Any help would be VERY appreciated.
Bryan Langford
Analyst
National Customer Operations
Enterprise Services & Strategic Planning
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists