|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
<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.
|
|
#2
|
|||
|
|||
|
<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... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > <CFLOGIN> |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|