What actually causes Session_Start to be called?

前端 未结 4 1276
执笔经年
执笔经年 2021-01-17 19:45

In a little demo application that I\'m building I put code to initialize the database in the Global.Session_Start() event. However, I notice that this event does not fire w

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 20:40

    I'm not entirely sure that a session "starts" until you access the Session object. Otherwise it would seem like unnecessary overhead to fire up an unneeded session.

提交回复
热议问题