Can we change the session timeout in ASP.NET, if yes then
how and from where?

Answer Posted / narendra soni

to change session timeout write this code in your web.config
file

<sessionState mode="InProc" timeout="60">

or you can also set this in global.asax file as

Session.Timeout = 60 ; // in Session.Start() event

it will increase your session expire time .

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To display data in a Repeater control which template you provide?

596


How to prevent client side validation from the ASP.NET validation controls?

580


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1446


What does it mean your session has timed out?

533


What is a swagger in web api?

540






What is http response header?

567


Why web api is better than wcf?

561


How to use ipostback?

594


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

597


Explain the difference between asp and asp.net?

514


What is .net framework and what are the main components of it?

377


Write a code for passing ArrayList in Web API?

1061


What are the HTML server controls in ASP.NET?

574


How does the cookies work in asp.net?

555


Explain the difference between Web Garden and Web Farm?

551