15,897,518 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14940951 (Top 3 by date)
Member 14940951
15-Oct-20 12:21pm
View
I have checked multiple times and I am sure, there is no default case scenario set.
Also the issue doesnt occur when we debug the code locally on their machines.
User.Identity.Name fetches right user ids when run locally with code on their machines but gives wrong values when accessing the hosted application(production url).
Member 14940951
15-Oct-20 12:13pm
View
I have cross checked and they login with their respective user ids only. There is no shortcut that is set to run as a different account. Also there is no default case scenario set such as when a user is not found, it is filled with another user id.
Member 14940951
15-Oct-20 2:57am
View
@ZurdoDev,
When we access the website from a local machine, the expected result is that the application must be authenticated with the current logged in user. But here instead it is authenticated with a different user id (which is an admin account).
In my case, admin account is just another LDAP user account which is used in our daily services with more access rights than a normal user. It is also the account with which the Windows 7 server machine is logged on.
The application works fine as expected for everyone else except in case of the these 2 particular users.
This issue occurs to the above users only while accessing the hosted application(production url). When I debug the application via code locally on their machines, their respective user ids are fetched as expected.
I have also tried clearing the entire browsing data including cookies and cache.