Do you have some sample code?

On Thu, 3 Apr 2003 08:54:50 -0500, Tyler Silcox wrote:

> There is not an application wide session-clearer, so I always set a UUID,
> from CreateUUID(), in the application scope and in the user's session
> variables.  Then if the application UUID is different from the session UUID,
> you reset the session variables.  You can do this programmatically by just
> changing the UUID in the application scope and then have your session
> variables update automatically, which also works very nicely when the
> application vars expire->
> 
> Tyler
> 
> ----- Original Message -----
> From: "Kay Smoljak" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, April 03, 2003 2:22 AM
> Subject: clearing all sessions in an application
> 
> 
> Hi All,
> 
> This is really an application design issue I'm having, I think. If
> anyone has any ideas I'd be greatly appreciative!
> 
> I have an intranet app which uses the current Windows username to set
> some session variables - actually mainly a list of current projects for
> each user, taken from the database. Users need to be logged in to the
> local network to access the app, so logging in is automatic. The session
> setup checks for the existence of the session user struct, so an update
> only occurs if the session is new or timed out. As the app is used all
> day every day, the session timeouts are long.
> 
> However, if a user adds a new project and assigns it to several users,
> those users will only see it when their session times out. What I'd like
> is a way to clear *all* sessions for that application. If that's not
> possible, there's several other scenarios I've thought about - setting
> an application variable with a timestamp when a project is added and
> including that in the session setup check, or using client variables
> stored in the database instead of sessions (but I'm not even sure if
> that will help).
> 
> Thanks in advance...
> 
> Kay.
> 
> ______________________________________________________
> Kay Smoljak      Web Developer        PerthWeb Pty Ltd
> 
> Level 9/105 St George's Tc - Perth - Western Australia
> Ph: (08) 9226 1366 Fax: (08) 9226 1375
> 
> www.perthweb.com.au      developer.perthweb.com.au
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to