private static void SaveItemToSession(Session session, SessionStateStoreData item, bool compression)
 {
     byte[] buf = null;
     int length = 0;
     SerializeStoreData(item, 0x1b58, out buf, out length, compression);
     session.SessionItem = buf;
 }
 private static SessionStateStoreData InitializeSessionItem(HttpContext context, Session session, bool compression)
 {
     SessionStateStoreData item = new SessionStateStoreData(new SessionStateItemCollection(), SessionStateUtility.GetSessionStaticObjects(context), session.Timeout);
     SaveItemToSession(session, item, compression);
     session.Flags = 0;
     return item;
 }
 private static Session NewSession(string id, int timeout)
 {
     Session session = new Session();
     DateTime utcNow = DateTime.UtcNow;
     session.Created = utcNow;
     session.SessionId = id;
     session.Timeout = timeout;
     session.Expires = utcNow.AddMinutes((double) timeout);
     session.Locked = false;
     session.LockDate = utcNow;
     session.LockCookie = 0;
     session.Flags = 0;
     return session;
 }
        public bool IsuserLoggedin(Session userID) 
        {

            return false;   
        }