![]() |
| CFLogin Fails With IE, not Fire Fox |
|
tedjtw
|
Hi,
We have a functioning app with one problem, login works great in every browser except IE. If I log in with FF I get the variables just as I would expect them. If I log in with IE, login fails and I see cfauthentication_appname in the cookie structure instead of the session structure where it is when I use FF. Plus it's an empty string in IE and has contents when using FF. Any advice appreciated. Thank you for your time. BTW...There are numerous threads about this issue around and it is not just Coldfusion, I found questions, no answers, in MSDN too. From the Application.cfc: <cfcomponent> <cfset this.name = "appname"> < cfset this.sessionmanagement="True"> <cfset this.sessionTimeout = CreateTimeSpan( 0, <!--- Days. ---> 0, <!--- Hours. ---> 15, <!--- Minutes. ---> 0 <!--- Seconds. ---> )> <cfset this.loginstorage="session"> <cfsetting requesttimeout="20" showdebugoutput="yes" enablecfoutputonly="no"> [... stuff removed ...] <cffunction name="OnRequestStart"> <cfargument name = "request" required="true"/> <cfif IsDefined("Form.logout") or IsDefined("url.logout")> <cflogout> </cfif> <cflogin> <cfif NOT IsDefined("cflogin")> <cfinclude template="/private/loginform.cfm"> <cfabort> <cfelse> <cfif cflogin.name IS ""> <cfinclude template="/private/loginform.cfm"> <cfabort> <cfelse> <cfif parameterexists(action1)> <cfquery name="loginQuery" dataSource="#application.datasource#" username="#application.user#" password="#application.pass#"> SELECT Email, 'viewer' as Roles FROM UserTbl WHERE Email = '#cflogin.name#' </cfquery> <cfif loginQuery.Roles NEQ ""> <cfloginuser name="#cflogin.name#" password="x" roles="viewer"> <!--- log the login... ---> <cfquery name="auditrecord" dataSource="#application.datasource#" username="#application.user#" password="#application.pass#"> insert into login_audit (user_name,login_date,ip) values ('#cflogin.name#', GetDate(),'#cgi.REMOTE_ADDR#') </cfquery> <cfelse> <cfset msg=1> <cfinclude template="/private/loginform.cfm"> <cfabort> </cfif> </cfif> <cfif parameterexists(action2)> <cfquery datasource="#application.datasource#" name="logincheck" username="#application.user#" password="#application.pass#"> select * from DistributorTbl where LoginName='#cflogin.name#' and Loginpassword='#cflogin.password#' and active = '1' </cfquery> <cfif logincheck.recordcount> <cfloginuser name="#cflogin.name#" password="#cflogin.password#" roles="viewer,distributor"> <!--- log the login... ---> <cfquery name="auditrecord" dataSource="#application.datasource#" username="#application.user#" password="#application.pass#"> insert into login_audit (user_name,login_date,ip) values ('#cflogin.name#',GetDate(),'#cgi.REMOTE_ADDR#') </cfquery> <cfelse> <cfset msg=1> <cfinclude template="/private/loginform.cfm"> <cfabort> </cfif> </cfif> </cfif> </cfif> </cflogin> </cffunction> [... more stuff removed ...] |
||||||||||||
|
|
|||||||||||||
| CFLogin Fails With IE, not Fire Fox |
|
||
|


