The requestcontext class is accessible through the shared instance property:- SPFRequestContext.Instance.
Useful properties include:
-
SessionID
-
UserName
-
Query configuration
-
Create configuration
-
List of valid roles for the user
-
Current domain scope
-
Client machine name and the language locale.