I am using cflogin and cfloginuser. Everything was working fine. Then the
session expires. Now I can't login.
I tried this:
<cflogin>
<cfif isDefined("cflogin")>
<cfdump var="#cflogin#"/>
<cfloginuser name="#cflogin.name#" password="#cflogin.password#" roles="cm"/>
<cfdump var="#getAuthUser()#"/>
<cfdump var="#isUserInRole("cm")#"/>
</cfif>
</cflogin>
The cflogin dumped out fine, but the getAuthUser() return [empty string] and
isUserInRole() returns NO. When I refresh, the code would not run. I have to
add <cflogout> in to get it to run again. That suggests that the user was
logged in.
In my application page, I have
<cfapplication name="myApp" sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,30,0)#" loginstorage="session">
I have used cflogin and cfloginuser in cf6.1 many times before and I do not
have this problem.
I am using Windows 2003/IIS 6. I am using fb4.1, but I tried it on a non
fusebox page and I got the same problem.
Johnny
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211078
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