.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Session Timeout

Posted By: Aamrapali Tamgadge     Posted Date: August 16, 2011    Points:5   Category :ASP.Net
Hi to all.Can anyone tel me hoe to set the timeout for three hour.if the user leave the page for three hour till the session alive after three hour on submit click next page wil come.pls give me the solution for this since last one month me searching for this but no one giving me the exact answer.and now this is end time me having deadlines pls help me its argent

Responses
Author: Amit Mehra             
Posted Date: August 16, 2011     Points: 20   

Hi,

You can increase the session timeout using web.config file. The value will be in terms of minutes

<system.web>
<sessionState timeout="180"/>
</system.web>

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Aamrapali Tamgadge             
Posted Date: August 17, 2011     Points: 20   

sir i have tried it also by giving session timeout in min but still after two aor three hour when i click the submit button no responce from the page no action is fired.what should i do nw

Software Programmer At OTIS ISRC
Author: Sasi Prabhu             
Posted Date: August 17, 2011     Points: 20   

Try :

Web.Config

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="180"
/>

or

global.asax

protected void Session_Start(Object sender, EventArgs e)
{
Session.Timeout = 180;
}



Thanks & Regards,
Sasi Prabhu.
Author: Aamrapali Tamgadge             
Posted Date: August 17, 2011     Points: 20   

he sasi sir i have declared the session in global.aspx session start event should even i tried


protected void Session_Start(Object sender, EventArgs e)
{
Session.Timeout = 180;
}

this also but not working



i havent tried this

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="180"
/>

what exactly tcpip=127.0.0.1:42424" and 127.0.0.1 is it wil same for my server also

Software Programmer At OTIS ISRC
Author: Gowthammanju             
Posted Date: August 17, 2011     Points: 20   

try these as


There are some other timeout values that will affect session time out. One of them that comes to my mind is Worker Process Timeout(that is set from IIS). Worker Process's default time out is 20 mins, so if there is no activity in your site for 20 mins the worker process will end and causing your session to end if you are using session in InProc mode. So getting Worker Process's timeout value to 360 minutes is what you may need as well.

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: August 17, 2011     Points: 20   

try these also as

<authentication mode="Forms">
<forms requireSSL="false"
defaultUrl="ss.aspx"
loginUrl="ss.aspx"
path="/"
slidingExpiration="false"
timeout="360"
name=".ASPXFORMSAUTH">
</forms>
</authentication>


Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: August 17, 2011     Points: 20   
Author: Aamrapali Tamgadge             
Posted Date: August 18, 2011     Points: 20   

Hello sir Realy i tired of this, me using iis5.1 there is no Application pool option.all the code is working fine on local but not on server.

Software Programmer At OTIS ISRC


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend