Your code is a bit hard to read, but it looks like you have two
closing </cflogin> tags.  Also, you try to dump cfloginuser, but that
isn't made anywhere from what I can see. If you want the current user,
you run getAuthUser().


On Sat, 30 Oct 2004 12:43:44 -0200, Web Specialist
<[EMAIL PROTECTED]> wrote:
> Hi all
> 
> why my cflogin framework don't work? Please look my script:
> 
> <!---application.cfm BEGIN --->
> <CFAPPLICATION name="life"
>                 sessionmanagement="Yes"
>                 sessiontimeout="#CreateTimeSpan(0,1,0,0)#"
>                 applicationtimeout="#CreateTimeSpan(0,1,0,0)#"
>                 clientmanagement="yes" loginstorage="Session"
>                 >
> 
> <cflogin>
> <CFIF NOT IsDefined("cflogin")>
> <cfif (listlast(cgi.script_name,'/') neq 'loginform.cfm') AND
> (listlast(cgi.script_name,'/') neq 'lostpass.cfm') AND
> (listlast(cgi.script_name,'/') neq 'logincheck.cfm') AND
> (listlast(cgi.script_name,'/') neq 'show_attribs.cfm')>
> 
> <CFHEADER name="window-target" value="_top" />
> <cflocation url="#Application.url_begin#/loginform.cfm" addtoken="no" />
> <cfabort />
> </cfif>
> </CFIF>
> </cflogin>
> <!---application.cfm END --->
> 
> <!---logincheck.cfm - loginform.cfm target BEGIN--->
> <!---checks for login and pass--->
> <!---login and pass OK--->
> <!--sets Session.Vars--->
> <cfloginuser name="#getPass.strUsersLogin#" password="#getPass.strUsersPass#"
>                      roles="#getPass.rolesID#">
> </cflogin>
> <!---logincheck.cfm - loginform.cfm target END--->
> 
> Dumping <cfdump var="#cfloginuser#"> gives me error:
> 
> Variable CFLOGINUSER is undefined.
> 
> What's happened? Looks all right...
> 
> Thanx for your time.
> 
> Web Specialist
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=35

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182999
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to