Phillip, Phillip here. :)

May I suggest another tact?

While I know of people who would take the offer, I urge you to study 
cflivedocs and learn more about CF. For example.

<cfif IsDefined("cookie.LoggedIn")>
Welcome, your logged in as <cfoutput>#cookie.username# ID:
#cookie.ID#</cfoutput>
</cfif>
<cfif Not IsDefined("cookie.LoggedIn")>
Welcome, your logged in as <cfoutput>#session.Auth.username# ID
#session.Auth.ID#</cfoutput>
</cfif>

This can be rewrittened as


Welcome, your logged in as
<cfoutput>
        <cfif IsDefined("cookie.LoggedIn")>
                #cookie.username# ID: #cookie.ID#
        <cfelse>
                #session.Auth.username# ID: #session.Auth.ID#
        </cfif>
</cfoutput>

This is much more reasonable to read code and if you simplify your code, 
the answer may come to you.

Also, you seem focused on making 3 cookies for this application 
(Username, ID number and Confirmed). Why not just make one?

This will make it more secure (since once you have the UserID, you can 
do a search for username and if they want to remember their cookies 
(which I don't even ask most of the time. If they don't want cookies, 
then let them turn it off on their side)).

Anyway, I hope this helps. You have a real learning chance here. It may 
be better if you just start from scratch and rewrite the login part of 
the code giving you issues after you read up more on ColdFusion.



Phillip Perry wrote:
> Hi,
> 
> I have been over this cookie code for over a week and I can't get it
> straight, even with the help of people who I feel (and know) are
> experts. So now I'm offering $50 to the first person who can show me
> where the problem is and come up with a workable solution. I'm not
> looking for someone to write , or rewrite my code. Just tell me whats
> wrong with mine and offer a solution. If you're interested please
> contact me at [EMAIL PROTECTED] for further details and the code
> as it currently stands.
> 
> Thanks,
> 
> Phil
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313412
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to