Thanks Raymond....

sorry for the code... post only the needed for my question.... Please
looks once more...

<!---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 HERE//////////
/////////CFLOGINUSER HERE//////////
/////////CFLOGINUSER HERE//////////
<cfloginuser name="#getPass.strUsersLogin#" password="#getPass.strUsersPass#"
                    roles="#getPass.rolesID#">
/////////CFLOGINUSER HERE//////////
/////////CFLOGINUSER HERE//////////
/////////CFLOGINUSER HERE//////////

</cflogin>
<!---logincheck.cfm - loginform.cfm target END--->

Thank you for your help.

p.s.: using getAuthUser() show me the same error - var UNDEFINED.... ;-(

On Sat, 30 Oct 2004 12:49:48 -0500, Raymond Camden <[EMAIL PROTECTED]> wrote:
> 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
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.houseoffusion.com/banners/view.cfm?bannerid=11

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183000
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