Thanx Raymond

works fine now.... I need to change the value for the roles

Before: roles="#getPass.rolesID# - WRONG

Now: roles="#ValueList(getPass.rolesID)#"

Thanx once more again




On Sat, 30 Oct 2004 16:04:46 -0200, Marco Antonio C. Santos
<[EMAIL PROTECTED]> wrote:
> 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
> > >
> > >
> >
> >
> 
> 

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

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183001
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to