简体   繁体   中英

session timeout only for current request

I was wondering about something , in my website which depends totally on wcf services . When the user keeps the website open for a longtime and then clicks any button , the service sees his asp.net session as null , though if he refreshes the page everything goes back to normal , is there any property in session state or something to make the site working all the time even if the user is idle ??

Your session would be expiring after a interval configured in web.config. Change the timeout in SessionState tag to 60 in web.config now it will expire after one hour. Read about session state for info click here

<sessionState mode="InProc" cookieless="true" timeout="60"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM