Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
BSterner #1
Shared Session Vars in CFAPPLICATION
Was wondering how people handle shared session variables acrossed multiple
applications. For example, let say you have an admin section of your site with
multiple sub-applications (Meaning different cfapplication names), yet you only
want to store one copy of an Employee instance (Employee.cfc) in the session
scope.
- One thought is to switch up the cfapplication tag inside a page that needs
access to the variable, and then switch it back right after you're done with it.
<cfapplication name="appOutside">
access shared variable and do some stuff
<cfapplication name="appOriginal">
now i'm back in my sub-app
- Another is to use the same cfapplication name across all sub-apps, which I
really don't like.
- The last that comes to mind would be to make use of the sessionTracker
object...
<cfscript>
tracker = createObject("java", "coldfusion.runtime.SessionTracker");
s1 = tracker.getSessionCollection("EmpAdmin");
</cfscript>
Would like to know how others are handling this, if at all. Is there a better
way to go about it?
Thanks
BSterner Guest
-
#25307 [Ver->Csd]: Crash when session.serialize_handler=wddx & session, post, get vars
ID: 25307 Updated by: sniper@php.net Reported By: cristea at pntcd dot ro -Status: Verified +Status: ... -
#25307 [Ver]: Crash when session.serialize_handler=wddx & session, post, get vars
ID: 25307 User updated by: cristea at pntcd dot ro Reported By: cristea at pntcd dot ro Status: Verified Bug Type: ... -
#25307 [Opn->Ver]: Crash when session.serialize_handler=wddx & session, post, get vars
ID: 25307 Updated by: sniper@php.net Reported By: cristea at pntcd dot ro -Status: Open +Status: ... -
#25307 [NEW]: Crash when session.serialize_handler=wddx & session, post, get vars
From: cristea at pntcd dot ro Operating system: any PHP version: 4CVS-2003-08-29 (stable) PHP Bug Type: Session related Bug... -
Session vars
Scott, The company I work for, Consonica, produces a solution called StateStitch that is what you are looking for. StateStitch allows ASP and...



Reply With Quote

