>- see footer for list info -<
OK please explain it to me then DOM.

Your client variables are set to expire after 30 days.
I visit your site after 31 days.
How am I automatically logged in ?

Russ 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dominic watson
Sent: 20 January 2006 14:22
To: Coldfusion Development
Subject: Re: [CF-Dev] Keeping someone logged in

>- see footer for list info -<
"But that's not really what were talking about.
The whole point in saving your login details in a cookie is so that you can
be automatically logged into a website every time you revisit, even if it is
6 months later."

Yes, which you can do by setting client variables. Same thing, less code.
Though I guess you'd only do it if you were storing client data in the first
place.

Dominic

Snake wrote:

>>- see footer for list info -<
>>    
>>
>CF automatically creates the cookies for session and client variables 
>to manage your session.
>But that's not really what were talking about.
>The whole point in saving your login details in a cookie is so that you 
>can be automatically logged into a website every time you revisit, even 
>if it is
>6 months later.
>
>
>Russ
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of dominic watson
>Sent: 19 January 2006 16:32
>To: Coldfusion Development
>Subject: Re: [CF-Dev] Keeping someone logged in
>
>  
>
>>- see footer for list info -<
>>    
>>
>It is the same; you just dont have to handle the cookies, CF does it 
>for you so cleaner code IMO. Is this not right?
>
>Snake wrote:
>
>  
>
>>>- see footer for list info -<
>>>   
>>>
>>>      
>>>
>>How would that negate the need for cookies then Dom?
>>You still need a cookie to identify your session so that the correct 
>>client variables are loaded. So it's the same as using session variables.
>>And if the client variables expire, where will the login details come
from?
>>
>>Russ
>>
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of dominic 
>>watson
>>Sent: 19 January 2006 14:40
>>To: Coldfusion Development
>>Subject: Re: [CF-Dev] Keeping someone logged in
>>
>> 
>>
>>    
>>
>>>- see footer for list info -<
>>>   
>>>
>>>      
>>>
>>It can also be done using client variables if you have them enabled in 
>>the application. This handles all the cookies for you:
>>
>>IF remember me selected...
>>  
>>   client.username = form.username
>>   client.password = form.password
>>
>>Just remember to clear them when they logout (remember me status 
>>should be cleared when someone logs out)
>>
>>Snake wrote:
>>
>> 
>>
>>    
>>
>>>>- see footer for list info -<
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>Usually yes, you hash the username/password, store in cookie.
>>>
>>>So in the database, your usernames/passwords would also be hashed.
>>>
>>>So under normal login procedure, you HASH the form.username and 
>>>form.password and compare to database.
>>>If the user has a cookie.username and cookie.password, you check 
>>>these first (without hashing them), if they fail, kick to login page.
>>>
>>>Russ
>>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] On Behalf Of Allan Cliff
>>>Sent: 19 January 2006 14:17
>>>To: Coldfusion Development
>>>Subject: [CF-Dev] Keeping someone logged in
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>- see footer for list info -<
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>On loggong in some sites have a small checkbox that says remember me 
>>>on this computer.
>>>
>>>How is this done?
>>>Is the persons password saved with Hash() in a cookie?
>>>
>>>Thanks
>>>Allan
>>>_______________________________________________
>>>
>>>For details on ALL mailing lists and for joining or leaving lists, go 
>>>to http://list.cfdeveloper.co.uk/mailman/listinfo
>>>
>>>--
>>>CFDeveloper Sponsors:-
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>- Hosting provided by www.cfmxhosting.co.uk -<
>>>>- Forum provided by www.fusetalk.com -<
>>>>- DHTML Menus provided by www.APYCOM.com -<
>>>>- Lists hosted by www.Gradwell.com -<
>>>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>>>help -<
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>
>>>For details on ALL mailing lists and for joining or leaving lists, go 
>>>to http://list.cfdeveloper.co.uk/mailman/listinfo
>>>
>>>--
>>>CFDeveloper Sponsors:-
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>- Hosting provided by www.cfmxhosting.co.uk -<
>>>>- Forum provided by www.fusetalk.com -<
>>>>- DHTML Menus provided by www.APYCOM.com -<
>>>>- Lists hosted by www.Gradwell.com -<
>>>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>>>help -<
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>   
>>>
>>>      
>>>
>>_______________________________________________
>>
>>For details on ALL mailing lists and for joining or leaving lists, go 
>>to http://list.cfdeveloper.co.uk/mailman/listinfo
>>
>>--
>>CFDeveloper Sponsors:-
>> 
>>
>>    
>>
>>>- Hosting provided by www.cfmxhosting.co.uk -<
>>>- Forum provided by www.fusetalk.com -<
>>>- DHTML Menus provided by www.APYCOM.com -<
>>>- Lists hosted by www.Gradwell.com -<
>>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>>help -<
>>>   
>>>
>>>      
>>>
>>_______________________________________________
>>
>>For details on ALL mailing lists and for joining or leaving lists, go 
>>to http://list.cfdeveloper.co.uk/mailman/listinfo
>>
>>--
>>CFDeveloper Sponsors:-
>> 
>>
>>    
>>
>>>- Hosting provided by www.cfmxhosting.co.uk -<
>>>- Forum provided by www.fusetalk.com -<
>>>- DHTML Menus provided by www.APYCOM.com -<
>>>- Lists hosted by www.Gradwell.com -<
>>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>>help -<
>>>   
>>>
>>>      
>>>
>> 
>>
>>    
>>
>
>_______________________________________________
>
>For details on ALL mailing lists and for joining or leaving lists, go 
>to http://list.cfdeveloper.co.uk/mailman/listinfo
>
>--
>CFDeveloper Sponsors:-
>  
>
>>- Hosting provided by www.cfmxhosting.co.uk -<
>>- Forum provided by www.fusetalk.com -<
>>- DHTML Menus provided by www.APYCOM.com -<
>>- Lists hosted by www.Gradwell.com -<
>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>help -<
>>    
>>
>
>
>_______________________________________________
>
>For details on ALL mailing lists and for joining or leaving lists, go 
>to http://list.cfdeveloper.co.uk/mailman/listinfo
>
>--
>CFDeveloper Sponsors:-
>  
>
>>- Hosting provided by www.cfmxhosting.co.uk -<
>>- Forum provided by www.fusetalk.com -<
>>- DHTML Menus provided by www.APYCOM.com -<
>>- Lists hosted by www.Gradwell.com -<
>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
>>help -<
>>    
>>
>
>  
>

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to