예제 #1
0
 public static MvcSession GetMvcSession(this HttpSessionState session)
 {
     if (session[MvcSessionKey] == null)
     {
         var mvcSession = new MvcSession();
         mvcSession.Init();
         session[MvcSessionKey] = mvcSession;
         return(mvcSession);
     }
     return(session[MvcSessionKey] as MvcSession);
 }
예제 #2
0
 public static MvcSession GetMvcSession(this HttpSessionState session)
 {
     if (session[MvcSessionKey] == null)
     {
         var mvcSession = new MvcSession();
         mvcSession.Init();
         session[MvcSessionKey] = mvcSession;
         return mvcSession;
     }
     return session[MvcSessionKey] as MvcSession;
 }