Posted by : Anwar Hossain
Category : State Management in ASP C #

How to increase session time in ASP.Net C#

Dear viewer's in this tutorial I will explain how to increase session time in ASP.Net C#. Generally we store username and password in session to move one page to otherpages. If we do not set session time suddenly Logout can be happened after 20 minutes because By default websites session timeout is 20 mines but we can increase our session time three different ways. In this situation I will show increaseing session time using web web.config.we need to change the timeout attribute for Session-state in the web.config file.

increase session time in ASP.Net C#

WEB.CONFIG

<configuration>

  <system.web>

    <sessionState timeout="20"></sessionState>

  </system.web>

  </configuration>




Realted Article Headline

How to Pass Query String parameter From DataList
Query String Example in ASP.NET C#
How to increase session time in ASP.Net C#
stroe datatable in session retrive display session vlaues in ASP.Net C #
How to clear Session state in ASP.NET C#
Session state in ASP.NET C#

Article Category

How to create asp.net control dynamically
Learn HTML for beginner
DataList example in C Sharp
Mail sending in asp.net c#
State Management in ASP C #
Basic sql tutorial for Beginner
DataTable example in ASP.Net C#
How to use LINQ in ASP.NET C#
asp.net c # basic tutorial
How to use ajax toolkit in asp.net C#
How to use different types of validation control using asp.net c#
How to use grid view in asp.net c#
Protected by Copyscape Online Plagiarism Detection