Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果用户在会话 1 小时内不活动,我需要从用户使用的数据库中释放数据。
怎么做?
您可以在 web.config 中将会话超时调整为一小时,并将代码Session_End放入Global.asax.cs
Session_End
Global.asax.cs