Sorry, I have never used Pastebin. If I may, here's a snapshot:
* User clicks on a page requiring login:
<CFSET FName = ListRest(GetAuthUser())>
<cfset TblName_seq=ListFirst(GetAuthUser())>
<cfif NOT (IsDefined("ListFirst") and isdefined("ListRest"))>
<CFINCLUDE TEMPLATE="ForceUserLogin.cfm">
</cfif>
* If not logged in, user is taken to MemberLoginForm.cfm:
<CFFORM
ACTION="#CGI.SCRIPT_NAME#?#PassUrlVars()#"
NAME="MemberLoginForm"
METHOD="POST"
PRESERVEDATA="Yes">
<INPUT TYPE="Hidden" NAME="muserName_required">
<INPUT TYPE="Hidden" NAME="userPassword_required">
...then login fields...
* Pass the vars function
<CFFUNCTION NAME="PassURLVars">
<CFARGUMENT NAME="Exceptions" DEFAULT="">
<CFSET Exceptions = ListAppend(Exceptions, "jsessionid,cftoken,cfid")>
<!--- If defined, start with URLToken; if not, start with empty string --->
<CFIF IsDefined("SESSION.URLToken")>
<CFSET PassVars = SESSION.URLToken>
<CFELSEIF IsDefined("CLIENT.URLToken")>
<CFSET PassVars = CLIENT.URLToken>
<CFELSE>
<CFSET PassVars = "">
</CFIF>
<CFLOOP LIST="#StructKeyList(URL)#" INDEX="Var">
<CFIF NOT ListFindNoCase(Exceptions, Var)>
<CFSET PassVars = ListAppend(PassVars,
"#Var#=#URLEncodedFormat(URL[Var])#", "&")>
</CFIF>
</CFLOOP>
<CFRETURN PassVars>
</CFFUNCTION>
<CFFUNCTION NAME="PassFormVars">
<CFARGUMENT NAME="Exceptions" DEFAULT="">
<CFSET Exceptions = ListAppend(Exceptions, "FIELDNAMES")>
<CFSET PassVars = "">
<CFLOOP LIST="#StructKeyList(FORM)#" INDEX="Var">
<CFIF NOT ListFindNoCase(Exceptions, Var)>
<CFSET LastPartOfVarName = ListLast(Var, "_")>
<CFIF NOT ListFindNoCase("required,date,integer,float",
LastPartOfVarName)>
<CFSET PassVars = PassVars & '<INPUT TYPE="Hidden" NAME="#Var#"
VALUE="#HTMLEditFormat(FORM[Var])#">'>
</CFIF>
</CFIF>
</CFLOOP>
<CFRETURN PassVars>
</CFFUNCTION>
* The secured page opens. HOWEVER, if I try to display any of the GetAuthUser
data (i.e., FName), it's just blank until I either go to a second secure page,
or I refresh it with F5.
I would be honored if you would consider a teleconference so you could see it
live with all the code, and we could discuss. I don't know if this is an
option for you, but I have the software.
Thanks for your help.
Donna
________________________________________
From: Raymond Camden [[email protected]]
Sent: Sunday, October 30, 2011 8:28 AM
To: cf-newbie
Subject: Re: FW: Page refresh before displaying
This doesn't quite make sense. Can you show us more of your code?
Preferably via Pastebin.
________________________________
This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.
If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5707
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm