> Q1. How is the user who is already logged in authenticated? BlogCFC is
using 
cfloginuser.

I set session.loggedin to true or false after authentication and check
that.

So far, I have included my application file at the top of the blog.

<cfinclude template="../Application.cfm">
<cfset variables.usersName = session.firstname&' '&session.lastname>
<cfset variables.usersRoles = session.roles>
 

Then I went down to the cflogin code and changed to this. I was hesitant
to add all of my other roles until I got this to work first.

<cflogin>
<cfloginuser name="#variables.usersName#" password="abc123"
roles="admin">
<cfset session.loggedin = true>
</cflogin>

Then, I went to editor.cfm and commented out the login prompt.

<!---
<cfif not isUserInRole("admin")>
        <!--- prompt to login --->
        <cfset hideLayout = true>
        <cfinclude template="login.cfm">
        <cfabort>
</cfif>--->

But, when I click "Add new entry" it still asked me to login. I can't
figure out how/why it does this when the code in the editor is
commented. That is the part I don't understand.


-Brian
******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its 
website linkages may contain confidential health information.  This information 
is intended solely for use by the individual or entity to whom it is addressed. 
 If you have received this information in error, please notify the sender 
immediately and arrange for the prompt destruction of the material and any 
accompanying attachments.





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to