SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 6th, 2004, 07:18 AM
mikemac mikemac is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Greenville NC
Posts: 70 mikemac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 24 sec
Reputation Power: 4
<CFLOGIN>

I am using <CFLOGIN> to authenticate users. When users log in using the <CFLOGIN>, how is there status (logged in/out) stored??? I want to create a <CFLOGOUT> tag only if the user is logged in. I need to know what to look for or what variable to test for to see if the user is logged in.

Reply With Quote
  #2  
Old December 6th, 2004, 09:53 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
<cflogin> framework has a function called GetAuthUser().
once the user is logged in, you can use this function to retrieve or display the user's name, id or any other identifying information.

i am sure you are also using something like
<cfloginuser
name = "#yourquery.ContactID#,#yourquery.FirstName#"
password = "#FORM.userPassword#"
roles = "#yourquery.userRoleName#">

then you will do

<cfset contactID = ListFirst(GetAuthUser())>
<cfset contactName = ListRest(GetAuthUser())>

assuming the fact that user successfully logged in, you can check for the existence of contactID and contactName.
<cfif IsDefined('contactID')>
...user is logged in, provide the logout button...
</cfif>

hope it helps...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > <CFLOGIN>


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway