Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / narinder mahindru

By default session time out is 20 minutes but one can
change it. there are two ways to change the sessiontime out
in asp.net that is:-


1) from web config. file by setting the session timot
element eg.
<sessionstate timeout="60"/>

or
2) by doing programtically eg.
session.timeout=60

Is This Answer Correct ?    21 Yes 3 No

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

Answer / sabeer pasha

Hi All,

Have u set any time limit in the web.config file if not
then set like this
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>

Is This Answer Correct ?    15 Yes 4 No

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

Answer / narendra

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

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

it will increase your session expire time .

Is This Answer Correct ?    12 Yes 3 No

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

Answer / 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

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

Answer / guest

yes go to change webconfig session timeout.

Is This Answer Correct ?    7 Yes 1 No

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

Answer / saminathan

The session in my application often gets expired.

I've tried giving session timings both
in the page directive of the page
as well as

Is This Answer Correct ?    6 Yes 3 No

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

Answer / mohammad aziz

Yes ofcourse. There are few steps which needs to be
followed. Pls. visit this link to have a beautiful
explaination...
http://support.yessoftware.com/kb_article.asp?
s_keyword=.gif&s_prod=&kb_articlesPageSize=10&s_type=&order_
by=Freshness&s_cat=&article_id=74


Aziz...

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

Define reflection in .net?

0 Answers  


What is OSI layer? Explain different layers.

0 Answers   MCN Solutions,


List down the sequence of methods called during the page load.

0 Answers  


Distinguish between Server-side and Client-side code with its functionality?

0 Answers   Siebel,


Explain asp.net web forms.

0 Answers  


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


Your manager has asked you to describe what you would use application variables for. What statement best describes the use of application variables? a) Application Variables are used to keep state for each connected user. b) Application Variables are used to keep state for the web site c) Application Variables are used to keep state for the application on the server d) Application Variables are used to keep state for all applications objects in the web site.

1 Answers   Syntax Softtech,


Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button control. my requirement is while click this button i need to display some alert message. Could you please help me which gridview event i need to write source code? Please give me a quick response. Thanks

6 Answers  


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

0 Answers  


What are the new features added from ASP to ASP.NET?

0 Answers   Amdocs,


What is the maximum amount of memory any single process on windows can address?

0 Answers  


Categories