Hi,

I 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.


 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 ...]





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3318
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
  • CF/Oracle Bob Imperial
    • login browser issue, CF8 Chris Griffin

Reply via email to