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.
我将 SimpleMembership 与 mvc4 一起使用。是否可以为此设置超时时间?类似于在 confit 文件中设置普通表单身份验证的终止期?
谢谢。
从您的问题来看,尚不清楚您要设置哪种类型的超时。但是,如果数据库超时,您可以在连接字符串中设置它,如下所示:
Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=SSPI;Connection Timeout=30";