> In my application.cfm I have the following line of code:
>
> <CFSET APPLICATION.ADDTOKEN = "cfid=#client.cfid#&cftoken=#client.cftoken#">
>
> Now, there are login forms all over my site so people can login... if they
> put their email and their password in, it should pass their email through
> the URL... The form that they type email in is a textbox simple called
> "Email." So how would I then append this to the APPLICATION.ADDTOKEN?
Chris:
I assume you're creating the AddToken in order to track users via URLs. If so, why
not use #Session.URLToken#, which CF creates automatically in the Session scope,
keeping
the assignment linked to a specific user rather than overwriting an Application
variable
visible to ALL users. Unless there is never more than one concurrent user, I would
think
there's the potential for one user's CFID and CFTOKEN to get associated with another
user if you assign those tracking numbers to an application variable and then add
that variable to one or more URLs.
To append the email adr to the combined cfid/cftoken var, you could do something like
this in your application.cfm:
<CFSET Session.MyToken=Session.URLToken>
<CFIF IsDefined("Form.Email")>
<CFSET Session.MyToken="#Session.MyToken#"&"#Form.Email#">
</CFIF>
Gene Kraybill
LPW & Associates
---------------------------------
Gene Kraybill
LPW & Associates LLC
www.lpw.net
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.