Chris,

getAuthUser() is meant to be called when using cflogin and cfloginuser...
and cflogin has to be called on every request.

It's part of the cflogin security framework. It's pretty simple:

<cflogin>
{sql queries or whatever here}
<cfloginuser name="fred smith" roles="User" />
</cflogin>

Then on any page when you call getAuthUser() it'll return either the
contents of the name attribute of cfloginuser or "". My guess is you haven't
been using cflogin at all.

Also, using j_password and j_username as your form field names will engage
HTTP authentication automatically and log you in, but only when you're using
HTTP authentication.

HTH,
J


On 12/20/05, King, Chris <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am having a problem using GetAuthUser(). In the many tutorials i have
> found it says if a user isn't logged in, the function will return "".
> However, in the docs it says "2. if no user was logged in with
> cfloginuser, it checks for the web server login(cgi.remote_user)". This
> is where my problem lies. Instead of getting "", i am getting my
> domain\username, without logging into anything. Any ideas? Thanks.
>
>
>
> Chris King
>
> Desktop Support Specialist / Winbatch Guru
>
> Atos Origin
>
> 301 University Blvd
>
> 1.710 Rebecca Sealy
>
> Galveston, TX 77555
>
> USA
>
> Phone : 409.747.9428
>
> Fax : 409.747.9569
>
> [EMAIL PROTECTED]
>
> [EMAIL PROTECTED]
>
> www.atosorigin.com
>
>
>
> "Never test for an error you don't know how to handle."
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1550
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
  • GetAuthUser() King, Chris
    • Re: GetAuthUser() Jared Rypka-Hauer - CMG, LLC

Reply via email to