Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Keep a value across different application names

$
0
0

Hello, all,

 

I'm trying to find a way to keep something persistent across different application names without using the server scope (which could be lost upon reboot.)

 

Here's the situation.  I've got a very large site.  Many sections utilize the root application.cfc, but others have their own application.cfc with a unique name.

 

/dtr/application.cfc   <!--- app name = "dtr" --->
/dtr/index.cfm

/erc/index.cfm   <!--- uses root app.cfc --->

/mov/application.cfc   <!--- app name = "mov" --->
/mov/index.cfm

/suv/index.cfm   <!--- uses root app.cfc --->

/zyx/application.cfc   <!--- app name = "zyx" --->
/zyx/index.cfm

/root/application.cfc   <!--- app name = "ust" --->
/root/index.cfm

 

No matter which page is loaded, first, (could be bookmarked, or link sent in a message) I need to check to see if the user has seen a banner alert.  If not, display the alert and set a value for all future references.

 

I thought of session cookies, but when you get to a section with it's own app.cfc and the name changes, boom.. the previous set session value doesn't exist in this new session.

 

I thought of standard cookies, but I need the cookie to clear if/when the user closes the browser, so the banner will be viewed the next time the user visits.

 

I (obviously) don't want this alert loading on every page, every time.  That would be super-annoying. 

 

Any thoughts or suggestions on how to make this work?

 

V/r,

 

^_^


Viewing all articles
Browse latest Browse all 5794

Trending Articles