Example #1
0
        SessionStateStoreData GetStoreData(HttpContext context, string sessionId, bool isReadOnly)
        {
            SessionStateStoreData item;

            item = (isReadOnly) ?
                   handler.GetItem(context,
                                   sessionId,
                                   out storeLocked,
                                   out storeLockAge,
                                   out storeLockId,
                                   out storeSessionAction)
                                                                 :
                   handler.GetItemExclusive(context,
                                            sessionId,
                                            out storeLocked,
                                            out storeLockAge,
                                            out storeLockId,
                                            out storeSessionAction);
            if (storeLockId == null)
            {
                storeLockId = 0;
            }

            return(item);
        }
Example #2
0
 void GetStoreData(HttpContext context, string sessionId, bool isReadOnly)
 {
     storeData = (isReadOnly) ?
                 handler.GetItem(context,
                                 sessionId,
                                 out storeLocked,
                                 out storeLockAge,
                                 out storeLockId,
                                 out storeSessionAction)
             :
                 handler.GetItemExclusive(context,
                                          sessionId,
                                          out storeLocked,
                                          out storeLockAge,
                                          out storeLockId,
                                          out storeSessionAction);
     if (storeLockId == null)
     {
         storeLockId = 0;
     }
 }