.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

Is the session Timeout attribute a sliding timeout value?

Posted By :Santosh     Posted Date :October 08, 2009    Points :10   Category :ASP.Net 
The session Timeout is a sliding expiration time, meaning whever your page access session state, the expiration time will be moved forward. Please note that as long as a page has NOT disabled session state, it will access the session automatically when requested.


Regards
Santosh
http://santoshdotnetarena.blogspot.com/

You can also find related Interview Question to Is the session Timeout attribute a sliding timeout value?  below: 

what is session ,cache, cookie, application memory timeout?

  

Session timeout: 20 min
Cache timeout: duration we have to specify.
Cookie: for in memory cookie till browser opened
For persistent cookie timeout is till expires property's time .
Application memory timeout: till appdomain exist (More...)

What is the default TimeOut for a SqlCommand.CommandTimeout property?

  
The default timeOut is 30 seconds.

If you want to increase the TimeOut see the below example code
For example:-

SqlCommand cmd = new SqlCommand("select * from tablename", conn);

cmd.CommandTimeout = 50;

SqlDataReader dr = cmd.ExecuteReader();




(More...)

How to set the timeout property for the WCF Service client call?

  
The timeout property can be set for the WCF Service client call using binding tag.

binding = "wsHttpBinding"
bindingConfiguration = "LongTimeout"
/>






If no timeout has been specified, the default is considered as 1 minute.
(More...)

How to set the timeout property for the WCF Service client call?

  
The timeout property can be set for the WCF Service client call using binding tag. If no timeout has been specified, the default is considered as 1 minute. (More...)

How to set the timeout property for the WCF Service client call?

  
The timeout property can be set for the WCF Service client call using binding tag.



...

binding = "wsHttpBinding"

bindingConfiguration = "LongTimeout"

...

/>














If no timeout has been specified, the default is considered as 1 minute.
(More...)

What is an attribute?

  
It is a particular property, which describes the entity. (More...)

Differences between application and session.

  
The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests. (More...)

What is Attribute Programming? What are attributes? Where are they used?

  
Attributes are a mechanism for adding metadata, such as compiler instructions and other data about your data, methods, and classes, to the program itself. Attributes are inserted into the metadata and are visible through ILDasm and other metadata-reading tools. Attributes can be used to identify or use the data at runtime execution using .NET Reflection. (More...)

Session state vs View state

  
In some cases, using view state is not feasible. The alternative for view state is session state. Session state is employed under the following situations:
. Large amounts of data - View state tends to increase the size of both the HTML page sent to the browser and the size of form posted back. Hence session state is used.
. Secure data - Though the view state data is encoded and may be encrypted, it is better and secure if no sensitive data is sent to the client. Thus, session state is a more secure option.
. Problems in serializing of objects into view state - View state is efficient for a small set of data. Other types like DataSet are slower and can generate a very large view state (More...)

what is different between session and application

  
session is a object that store information between http request for a paticular user.
->But application object are global for each user (More...)

How to remove a Session variable?

  
using HttpSessionState.Remove(); (More...)

How do you explicitly kill a user session?

  
To kill Session you have to use Session.Abandon() with this method we can explicitly kill a user session. (More...)

What is the difference between Session.Abandon() and Session.Clear()?

  
The major practical difference is that if you call Session.Abandon(), Session_End will be fired (for InProc mode), and in the next request, Session_Start will be fired. Session.Clear( ) just clears the session data without killing it.

Ragards
Santosh
http://santoshdotnetarena.blogspot.com/ (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend