Hi,

I am trying to get something to work and I can't seem to get it right. I have a list of stories all with their own UUID when one is selected I want the link to that story to be locked for other logged in users and only available to the current user that first selected that story.

I have a structure in the session scope which holds all the user's info and when the story is selected I add the storyid to this structure. I also have a structure in the Application scope which holds all of the session structures. What I want to do is check to see if a particular user is viewing a story and if so remove the link to that story for other users.

So if joe bloggs is editing the story then John Doe cannot.

I have a cfdump of the application structure below:


struct
applicationname abcde
usersloggedin struct
83658838-2B39-5973-3866F7192C0E9281 struct
TIMECREATED {ts '2003-01-02 19:31:01'}
realname Joe Bloggs
uname joe.bloggs
usergroups Administrators,Master
userid 83658838-2B39-5973-3866F7192C0E9281
storyid 91663878-2C49-4613-3866F7192C0E946

How do I reference the storyid that will be in one session from within another session in the same application?

I assign the currentuser session struct to the application struct like so: <cfset application.UsersLoggedin["#session.currentuser.userid#"] = session.currentuser>

I can access the storyid for a session but not from within a different session like so: #Application.UsersLoggedin[session.currentuser.userid].storyid#

Is there a way to grab the storyid from within the application structure without knowing which session structure it is in. Is there a better way?

Thanks in advance - hope you all had a great Christmas and New Year.

Dave Phipps


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to