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  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Can we change the session timeout in ASP.NET, if yes then
how and from where?
 Question Submitted By :: Mehsam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 1
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 ?    1 Yes 2 No
Saminathan
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 2
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 ?    8 Yes 1 No
Sabeer Pasha
 
 
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 3
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 ?    8 Yes 2 No
Narinder Mahindru
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 4
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 ?    0 Yes 0 No
Mohammad Aziz
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 5
yes go to change webconfig session timeout.
 
Is This Answer Correct ?    1 Yes 1 No
Guest
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 6
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 ?    3 Yes 1 No
Narendra
 
  Re: Can we change the session timeout in ASP.NET, if yes then how and from where?
Answer
# 7
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 ?    4 Yes 1 No
Narendra Soni
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
When during the page processing cycle is ViewState available?  1
What data type does the RangeValidator control support? Visual-Soft3
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format? FutureTech1
What is Boxing and Unboxing? Accenture6
What is Assert Method ?  2
What is the lifespan for items stored in ViewState? ISST2
i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this.... TCS3
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications? PCS2
Tell About Web.config ? Keane-India-Ltd2
Types of store procedure in Sqlserver?  2
Way of updating a table other than stored procedure and hard coded query?  2
what is the dllhell? why we use the dllhell?  4
How do you do validations. Whether client-side or server-side validations are better ? Microsoft2
What data type does the Range Validator control support?  3
can u create two Primary key for a table? --Sivaa BirlaSoft8
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do? eMids5
Where do you store the information about the user?s locale?  1
How many web.config a application can have ? Keane-India-Ltd5
What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?. Syntax-Softtech2
What line in the following XML document will generate an error? <?xml version=?1.0?> <employees> <employee> <name>Bob Andcarrol</name> </employee> <employee> <name>Robert Burns</name> </employee> </employees> a) 6 b) 4 c) 1 d) There is no error Syntax-Softtech2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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