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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

IIS 5.1 PHP Killed my session Timeout!

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :ASP.Net
 I followed the instructions to install php on IIS5.1 at php.net and ever since my asp.net sessions keepalive seems to die after 60 seconds of inactivity? Please help.

View Complete Post

More Related Resource Links

How to set session timeout and clear session in asp.net C# ? And kill session when close the web app


hi ,

How to set session timeout and clear session in web.config and login.aspx  ? And when we close the web application , the session must be cleared ?

I have use session.abandon as per below but is not working . Pls advise .


        protected void btnLogout_Click(object sender, EventArgs e)



session timeout


hi there,

is it possible that session time out is calculated in seconds and not in minutes?

i am setting it at web.config, global.asax, default.aspx and at the web server to 30 (minutes) and session last exactly for 30 seconds.



Session Timeout increase to 2 hours.



    for Business needs i am planning to increase the session timeout to 2 hours(120 min) in one application, i am using sql server session state. if i increase to 2 hours of session time out, how it will effect the performance of application and web server.

   Could any one help me on this.






Warning users before Session Timeout

Hi, In my web application, I want to alert users 5 minutes before their session timeout. If the users want, they can either extend their session or ignore the message - in which case after session timeout they will be redirected to the login page (I'm also using forms authentication in my site, so have set the authentication cookie expire time to the session timeout). I know I can do the alert with window.setTimeout, but I want to get user's respond and refresh the page if they want a session extension. How can I do that, in which event and whether I can do this in C# code behind. And also, should I implement this in the base page or somewhere else? How can I implement the auto page refresh - should I use a hidden button and click it from Javascript? It's great if someone can give a sample code for this.  

Ajax Session timeout problem

Hi,  I have some problems when using AJAX with updatepanels. I have an ASP.NET webapplication with a login that uses form authentication with the timeout set to 5 min. After 5 min of idle the site should be redirected to the login.aspx page. My problem is that after using the site for 5 minutes when clicking on contents inside an updatepanel I get a messagebox with the following error: A Runtime Error has occurred.Do you wish to Debug? Line: 4723Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031  I think that it has something to do with the ajax updatepanel since when I remove the updatpanels this problem does not appear. Instead the site is redirected to login.aspx as expected. When searching on the problem on google I see alot of people having similar problem, but I haven't found suitable solution. Any suggestions?

Asp.net Pages Getting session timeout

in my website there is a folder which requires authunteication/jobseekers/but after sometimes, the session("cid") is "", that means there is no value of candidate in the session("cid") field, but iam able to browse the jobseeker folderiam not using asp.net default authenticaiton method, iam manualy authenticating themnow my concern iswhen there is no value in session("cid") the user must be prompted to login againhow can that be doneif put a check in master page for session("cid")but i also have login.aspx in that jobseekers folderso do i need to have login.aspx page outside the jobseeker folder and shall i write session("cid") in master page

modal popup extender..session timeout

hi, i actually want to give a popup 2 min before the session timeout, i have actually found out a way to do that but i want to use modal pop up extender instead of javascript....... how should i use this,how do i create the pop up window first and then how do i call it from page load of each page, what should be the targetcontrolid,please help me out.   thank you

Asp.net Ajax and session timeout

Hi, How do I handle a session timeout when using a updatepanel ?When the user session has timed-out and I click a button I get this error Sys.WebForms.PageRequestManagerParserErrorException - The message received from the server could not be parsed.I have tried to set EnabledEventValidation to false on the page but that didnt work, I have also tried to override the preInit on the page...didnt work either.Any ideas ?

Check session timeout and warn user before timeout


I know there are several articles explaining how to warn the user before their session times out, but so far none of them have worked for our scenario, so I'm hoping someone here will be able to help me figure this one out...  Here's what we've got:

Our application uses SQLServer to store session state.  We've got it set to timeout in 60 minutes.  Unfortunately (I fought hard against this, but lost the battle) our application uses popups for several major screens.  So tracking the session timeout on the client side doesn't really work, because I have no idea what window the user is in at any given point.  I've tried the solution where you inject Javascript into the page using the current session timeout on each request, but again, because the user could be actively using the application in a different window, it doesn't work for us.  So I guess I have a couple key questions:

  1. Is there any way to get the timeout for a session without triggering a request to the server, which would just renew the session?
  2. Is there a way to track the session timeout value across multiple windows? 
    I believe there is a limit to the number of "branches" the main window can have in our app.  In other words, the user can only be 2 levels deep from the main/root window, s

Set session Timeout and Auto Redirect



I am creating web application. In that I want to set session timeout (not idle timeout). If a user logged in that time the session time will start and it automatically should detect session timeout the page should redirect to another page. How can I acheive this.

Alert on session timeout


Im implementing a minor function that SHOULD be no problem at all. However, I cant get it to work.

Currently, when a users session times out, they get redirected to our login screen. However, I want to add an alert box that tells the user why they were logged out. I want to place the code for this in the code behind, in the same function that checks the session. Currently, the code looks like this:

Protected Overrides Sub OnLoad(ByVal e As EventArgs)
        If SessionManager.User Is Nothing Then
            Response.Write("<script>alert('Session expired.');</script>")
            Exit Sub
        End If

The alert code for the alert works, but when I let my session time out, no alert shows, I just get redirected.

Im considering just redirecting to an error page, but I want to cut down the loading time as much as possible, thus I'd prefer to fire the alert as it redirects to login.

how to prevent session timeout during files uploading (postBack free uploader).


Hi All,
         i am using a multi selecting file upload control which is postBack free.
I am using session timeout.
 My problem is that during files uploading my session got expired. Bcoz my uploader
not being postback so i can't enhance session timeout. and while uploading my session
got expired and process was not completed, causes some imp files could not uploaded.

 any one suggest me what to do OR any idea to complete uploading then session timeout.

Session timeout



I am facing a lot problem on session time out plz help he out..

My Problem is described below in two cases

          1) when user login into application his session timeout is 10minutes.If the user is not doing any operations(i.e navigations)on application then after 9min user has to get notification saying that you session will expire in 1 minute plz click OK to continue.if he click OK then session time should extend with out POSTBACK.

         2)In the application we have popup's like lookUp screens for searching.If user click on image it display a small popup at that time the parent page session has to disable and for popup session has to start.if user is not doing any operations on popup for 10 min.we have to show the notification after 9min stating that your session will expire in 1 min plz click OK to continue.The user notification is for child page not for parent page.After completion of work in child page he will click close button then we have to enable the session for parent page with out postback.

How is it possible plz help me out ...i am breaking my head from past 1 week onwards...

Session timeout in Sharepoint pages.


Hi all,

In .Net ,we can have session timeout if the page is idle for a specified time. Likewise,i want to do in sharepoint if a newform.aspx for a list is idle.

Can anyone tell how to have session time out for a list newform.aspx?

Get current session timeout value



I have a section in my web app that displays the user's name, the current datetime and a logout link. What i would also like to display is the time left for the session.

Is this possible?

I'm using an ajax timer to give the user the real time, so if i could display also the time that is left for the session to end would be great.

Can anyone help?

session timeout issue



<sessionState mode="InProc" cookieless="false" timeout="20"/> 

I have put the above in my web config file. But my session timeout in less than a minute. are there any other changes to be made or added somewhere .

Please advise.

how to change session timeout in sharepoint WSS

how to change session timeout in sharepoint WSS
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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