I have a login, that writes session variables to the Main site.  The  
application.cfm file gives the app the name of "main".
Then I take the user to a sub-folder, through cflocation.  The  
subfolder has it's own application cfm file and gives itself the name  
of 'main', where I then copy the variables to the variables scope using:
<cfapplication name="main" sessionmanagement="Yes"  
sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
<cfset variables.foo = duplicate(session)>

This seems to work ok and I can dump the information.

Then I change the application name and make it's session variables  
the same as the previously duped variables:
<cfapplication sessionmanagement="yes" setclientcookies="yes"  
name="dbf" clientmanagement="Yes" sessiontimeout="#CreateTimeSpan 
(0,0,20,0)#">
<cfset session = duplicate(variables.foo)>

This seems to work and I can dump the information.

Finally, I have an index file that cfincludes a login check.  It also  
checks to see if session.dn exists.  It does because I've duped it  
through this process, but the check fails.  Oddly though the cfoutput  
does not fail.  I'm not sure how to resolve this.  here's the final  
code:

<cfif NOT structKeyExists(session,'dn')>
<!---  it goes in here, but session.dn does exist causes it's output  
with t he following  cfoutpout  --->
         <br> struct key does not exist<br>
          <cfoutput>
                  session:#session.dn#<br>
                   session.id:#session.id#<br>
                   session.access_level:#session.access_level#
           </cfoutput>


thanks for any help.

_____________________________

Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545
http://hhp.umd.edu




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:221480
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to