3 writes to _rqContext
System.Web (3)
State\SessionStateModule.cs (3)
495
_rqContext
= null;
615
_rqContext
= ((HttpApplication)source).Context;
1458
_rqContext
= context;
48 references to _rqContext
System.Web (48)
State\SessionStateModule.cs (48)
537
if (HttpRuntime.ApartmentThreading ||
_rqContext
.InAspCompatMode) {
540
_rqContext
,
541
_rqContext
.ApplicationInstance,
554
DisposableHttpContextWrapper.SwitchContext(
_rqContext
);
618
ChangeImpersonation(
_rqContext
, false);
621
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSION_DATA_BEGIN,
_rqContext
.WorkerRequest);
624
_store.InitializeRequest(
_rqContext
);
627
requiresState =
_rqContext
.RequiresSessionState;
630
if (_idManager.InitializeRequest(
_rqContext
, false, out _rqSupportSessionIdReissue)) {
632
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSION_DATA_END,
_rqContext
.WorkerRequest);
641
!((SessionIDManager)_idManager).UseCookieless(
_rqContext
)) ) { // Case 2
658
_rqId = _idManager.GetSessionID(
_rqContext
);
679
_store.ResetItemTimeout(
_rqContext
, _rqId);
684
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSION_DATA_END,
_rqContext
.WorkerRequest);
688
_rqExecutionTimeout =
_rqContext
.Timeout;
698
_rqReadonly =
_rqContext
.ReadOnlySessionState;
718
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSION_DATA_END,
_rqContext
.WorkerRequest);
748
_rqId = _idManager.CreateSessionID(
_rqContext
);
749
_idManager.SaveSessionID(
_rqContext
, _rqId, out redirected, out _rqAddedCookie);
768
ChangeImpersonation(
_rqContext
, false);
772
_store.SetAndReleaseItemExclusive(
_rqContext
, _rqId, _rqItem, _rqLockId, true /*_rqSessionStateNotFound*/);
845
SessionStateUtility.AddHttpSessionStateModuleToContext(
_rqContext
, this, delayInitStateStoreItem);
853
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Information, EtwTraceFlags.AppSvc)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_SESSION_DATA_END,
_rqContext
.WorkerRequest);
884
_store.CreateUninitializedItem(
_rqContext
, _rqId, s_timeout);
890
ChangeImpersonation(
_rqContext
, false);
895
_rqItem = _store.CreateNewStoreData(
_rqContext
, s_timeout);
920
SessionStateUtility.AddHttpSessionStateToContext(
_rqContext
, _rqSessionState);
932
Debug.Assert(!((SessionIDManager)_idManager).UseCookieless(
_rqContext
), "We can delay session id only if we are not using cookieless");
938
ChangeImpersonation(
_rqContext
, false);
940
_rqId = _idManager.GetSessionID(
_rqContext
);
964
SessionStateStoreData storedItem = _store.GetItemExclusive(
_rqContext
, _rqId, out locked, out lockAge, out _rqLockId, out _rqActionFlags);
978
_rqItem = _store.GetItem(
_rqContext
, _rqId, out locked, out lockAge, out _rqLockId, out _rqActionFlags);
981
_rqItem = _store.GetItemExclusive(
_rqContext
, _rqId, out locked, out lockAge, out _rqLockId, out _rqActionFlags);
990
_rqItem = _store.GetItemExclusive(
_rqContext
, _rqId, out locked, out lockAge, out _rqLockId, out _rqActionFlags);
1004
_store.ReleaseItemExclusive(
_rqContext
, _rqId, _rqLockId);
1045
if (
_rqContext
.HasTimeoutExpired) {
1171
Debug.Assert(
_rqContext
!= null, "_rqContext != null");
1200
ChangeImpersonation(
_rqContext
, true);
1280
SessionStateUtility.RemoveHttpSessionStateFromContext(
_rqContext
, delayedSessionState);
1325
_store.RemoveItem(
_rqContext
, ReleaseStateGetSessionID(), _rqLockId, _rqItem);
1376
_store.SetAndReleaseItemExclusive(
_rqContext
, ReleaseStateGetSessionID(), _rqItem, _rqLockId, _rqSessionStateNotFound);
1384
_store.ReleaseItemExclusive(
_rqContext
, ReleaseStateGetSessionID(), _rqLockId);
1398
_idManager.RemoveSessionID(
_rqContext
);
1457
if (
_rqContext
== null) {
1464
_store.InitializeRequest(
_rqContext
);
1465
_idManager.InitializeRequest(
_rqContext
, true, out dummy);
1481
_store.EndRequest(
_rqContext
);
1505
return ((SessionIDManager)_idManager).UseCookieless(
_rqContext
);