I would like to keep track of some session information in the
application scope.  This is what I am considering.

structInsert(application,"sessions",newStruct());
structInsert(application.sessions,session.sessionid,structNew());
structInsert(application.sessions[session.sessionid],"userid","mrFusion");
structInsert(application.sessions[session.sessionid],"created",now());
structInsert(application.sessions[session.sessionid],"accessed",now());

So I end up with a structure that looks like this:
application.session.e430715398cb325a314b.userid = mrFusion
application.session.e430715398cb325a314b.created = {ts '2006-03-30 16:54:59'}
application.session.e430715398cb325a314b.accessed = {ts '2006-03-30 16:54:59'}

Then every time a user requests a page, the accessed value gets
updated with a new time stamp like this:

application.session.e430715398cb325a314b.accessed = now();

When one of these values is updated, do I have to lock the application
scope or can I just lock the area that I want to change.  Or do I have
to lock anything at all.

I wanted to keep this information in application scope so that I can
monitor the sessions of the application.

--
Thanks,
Troy

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236626
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to