ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 


 

Company >> L&T >> Interview Questions >> ASP.NET Interview Questions
 
  Everything Else AllOther Interview Questions (2)   General Knowledge_Current Affairs Interview Questions (1)   Accounting AllOther Interview Questions (2)
  Engineering AllOther Interview Questions (2)   Instrumentation Interview Questions (1)   Electrical Engineering Interview Questions (13)
  Mechanical Engineering Interview Questions (3)   Civil Engineering Interview Questions (3)   Oracle Apps Manufacturing Interview Questions (1)
  APO Interview Questions (1)   HR Interview Questions (2)   FI CO Interview Questions (15)
  SD Interview Questions (23)   ABAP Interview Questions (2)   SAS Interview Questions (1)
  Data Stage Interview Questions (2)   Actuate Interview Questions (5)   Servlets Interview Questions (1)
  Advanced Java Interview Questions (1)   VSAM Interview Questions (1)   JCL Interview Questions (3)
  COBOL Interview Questions (3)   QA Concepts Interview Questions (1)   Test Director Interview Questions (1)
  QTP Interview Questions (2)   WinRunner Interview Questions (1)   Dot Net Framework Interview Questions (1)
  ASP.NET Interview Questions (1)   JSP Interview Questions (1)   MFC Interview Questions (3)
  C++ General Interview Questions (1)
 
Back to Questions Page
Question   Can we change the session timeout in ASP.NET, if yes then how and from where? Rank Answer Posted By  
 Interview Question Submitted By :: Mehsam
I also faced this Question!!   © ALL Interview .com
Answer
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
 
0 Saminathan
 
 
Answer
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" 
   />
 
0 Sabeer Pasha
 
 
Answer
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
 
0 Narinder Mahindru
 
 
 
Answer
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...
 
0 Mohammad Aziz
 
 
Answer
yes go to change webconfig session timeout.
 
0 Guest
 
 
Answer
to change session timeout write this code in your web.config
file 

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

it will increase your session expire time .
 
0 Narendra
 
 
Answer
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 .
 
0 Narendra Soni
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com