I have an application file that requires users to login prior to accessing any 
of the pages in the directory.  The first time that a user uses IE, it works 
great and they have to log in.  However, it doesn't seem to log them out when 
they close the browser. The next time they open the browser, and go to that 
page, they do not need to log in again.  I figured that a session would end 
when the browser closes.  It works fine in FireFox and Chrome.  Do I need to 
program that somehow?  Thanks in advance.

CODE:
<cfapplication name="Orders" sessionmanagement="Yes" loginStorage="Session">


<cflogin>
   <cfif NOT IsDefined("cflogin")>
      <cfinclude template="dologin.cfm">
      <cfabort>
   <cfelse>
      <cfif cflogin.name IS "" OR cflogin.password IS "">
         <cfoutput>
            <H2>You must enter text in both the User Name and Password 
fields</H2>
         </cfoutput>
         <cfinclude template="dologin.cfm">
         <cfabort>
      <cfelse>
          <cfquery name="loginQuery" dataSource="MailSystem">
          SELECT *
          FROM loginTable
          INNER JOIN IndividualInformation on 
loginTable.counter=IndividualInformation.counter
          WHERE
             IndividualInformation.email = '#cflogin.name#'
             AND InternetPasswordHash = '#Hash(cflogin.password)#'
         </cfquery>

         <cfif loginQuery.Role NEQ "">
            <cfloginuser name="#cflogin.name#" Password = "#cflogin.password#"
               roles="#loginQuery.Role#">
         <cfelse>
            <cfoutput>
               <H2>Your login information is not valid.<br>
               Please Try again</H2>
            </cfoutput>
            <cfinclude template="dologin.cfm">
            <cfabort>
         </cfif>
      </cfif>
   </cfif>
</cflogin>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322507
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to