Hi,

I have just identified a problem with session variables being mixed up within 
my intranet application.

Scenario

The user opens IE, and clicks on the favourite icon for our application 
http://appname/
There is a html file that is the default document that opens another IE window 
without the toolbars and address bar turned on by javascript.

<SCRIPT language="javascript">
function openLoginWindow()
{
        // Open Login Window in a Uniquely named (sort-of) named browser 
window, and set the focus
        var loginwindow;
        var uniquename = Math.floor(Math.random()*100);
        uniquename = uniquename.toString();
        // at some stage we will modify the below line to remove the 
address/URL bar (location=no)
        loginwindow = window.open("Password/sb_password.cfm",uniquename, 
"directories=no, status=yes, kiosk=no, fullscreen=no, location=no, 
scrollbars=1, resizable=1,alwaysRaised=yes, left=0, top=0");
        loginwindow.resizeTo(screen.availWidth,screen.availHeight);
        loginwindow.focus();
}       
</SCRIPT>


if the user wishes to open another window they have been instructed to open 
another IE application and perform the above steps.

(so they actually have 4 IE windows open in total).

Now the session variables begin to get mixed up...... 

The application.cfm file looks like:

<cfinclude template="templates/_db_settings.cfm">
<cfapplication name="Bilby" clientmanagement="Yes" sessionmanagement="Yes" 
setclientcookies="Yes" clientstorage="#this_dsn#">
<cfset DSN = this_dsn>


<cfif not isdefined("session.SB_LOGIN_CODE")
   or session.SB_LOGIN_CODE is "">
         <cflocation url="Password/sb_password.cfm" addtoken="No">
</cfif>
<cfheader name="cache-control" value="private">


<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
  <cfset cfid_local = Cookie.CFID>
  <cfset cftoken_local = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#cfid_local#">
  <cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>


Has anyone got any ideas? 

Scott Thornton, Programmer
Application Development
Information Services and Telecommunications
Hunter-New England Area Health Service
p: +61 02 49813589
m: 0413800242
e: scott.thornton <at> hnehealth.nsw.gov.au


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to