Video Screencast Help

Web page cannot be used by more than one person at a time

Created: 20 Jun 2013 • Updated: 20 Jun 2013 | 4 comments
This issue has been solved. See solution.

I have developed a web page that uses the Get Current User component to identify the user.  Their logon Id is then used to pull the list of computers associated with it.

I'm finding that if the site is being accessed when a second user logs on, the information from the first user is displayed to the second user.  Can anyone explain why this might be happening?  The application won't be very useful if only one person can access it at a time.

Operating Systems:

Comments 4 CommentsJump to latest comment

Rob Moore's picture

Couple of questions - how do you have the getcurrentuser item configured? Is it set to HPPTContext? or somethig else? Also, did you update the WebConfig file to use Windoiws Authentication?

 

Second, how are you storing the resuting user from the GetCurrentUser? Are you putting it in a global varaible?

rob

M Rutledge's picture

When deployed the GetCurrentUser is set to HTTPContext and the Web.config file is updated to Authentication Mode = 'Windows'.  The output of the GetCurrentUser is in a global variable.

The output of the GetCurrentUser is a variable named CurrentUser.  I take this variable and strip off the domain to derive a variable named CurrentUserWODomain.  What I've seen is that the CurrentUser has the correct value but the CurrentUserWODomain has the value from the other session.

M Rutledge's picture

Just to clarify, when I said I was using global variables I meant that they are visible throughout the project rather than being visible only within an Embedded Model. 

M Rutledge's picture

It turns out that the Embedded Model that used the CurrentUserWODomain to build other objects and variables had Caching turned on.  I turned off Caching and it seems to have resolved the issue.

Thanks for your help. 

SOLUTION