TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Riddhi Valecha
444
3.3k
412.7k
Difference - Ways to get current logged in user
Feb 3 2015 6:16 AM
Hi all...
My question is -
What is the difference between -
1. Page.User.Identity.Name
2. HttpContext.Current.User.Identity.Name.ToString();
3. System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
4.System.Environment.UserName;
-----------
Which is the best method to get the current logged in username for all Single Sign On Applications ??
------------
Which statement is to be used in which scenario ??
-------
Please explain.
Reply
Answers (
8
)
Page Life Cycle
How to detect the browser close event in ASP.Net (C#)