.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

Which might not work if a user has disabled cookies in his or her Web browser: application state or session state?

Posted By :Virendra Dugar     Posted Date :October 13, 2009    Points :10   Category :ASP.Net 
Session state, by default, won't work if a Web browser that supports cookies has cookies disabled. Application state isn't user-specific, though, and doesn't need to be tracked in cookies. Therefore, application state works regardless of cookies.

You can also find related Interview Question to Which might not work if a user has disabled cookies in his or her Web browser: application state or session state?  below: 

Which might not work if a user has disabled cookies in his or her Web browser: application state or session state?

  
Session state, by default, won't work if a Web browser that supports cookies has cookies disabled. Application state isn't user-specific, though, and doesn't need to be tracked in cookies. Therefore, application state works regardless of cookies (More...)

If cookies is disabled in client browser will session work ?

  
If cookieless is true it will work. If it is not, it won't work. (More...)

Which typically consumes more memory: application state or session state?

  
Session state tends to use much more memory than application state, because copies of all variables are stored for each user. (More...)

Is view state lost if a user refreshes a Web page? What if the user copies the URL and open it in other browser?

  
View state is maintained within a page's HTML, so it is lost if a page is refreshed or if the URL is copied. (More...)

Which typically consumes more memory: application state or session state?

  
Session state tends to use much more memory than application state, because copies of all variables are stored for each user. (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...)

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:
o 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.
o 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.
o 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 Application State?

  
Application State is one of the Server Side State management Mechanism which stores application memory on the server rather than persisting data in the client side memory.

(More...)

What is the Limitation for Application State?

  
1)Application Object Stores State of a User In Website Itself.
2)Which Leads to Burden To The Web Application and reduces the performance
3)The Scope of Web Application holds Until Website restarts? (More...)

How to update and retrieve value from a session state object?

  
To add or update a session state item use the following syntax,
[CODE]Session["Item Name"]= value;[/CODE]
Ex:- [CODE]Session["Name"]= Abhisek;[/CODE]
You can also pass a variable.

To to retrieve a session state items value use following ,
[CODE]String name=Session["Name"].ToString();[/CODE]
You can also retrieve to other formats according the session state item's data. (More...)

How to specify session state mode in ASP.NET ?

  
stateConnectionString="tcpip=192.168.100.100:420420"
sqlConnectionString="data source=192.168.100.100; Integrated
Security=SSPI"
cookieless="false"
timeout="20"
/> (More...)

State whethere Except command will work if both query have different number of fields?

  
No, It will work only with same number of fields with same datatype. (More...)

State whether Except clause will work if number of fields are same but with different datatype?

  
No, It will not work number of fields and datatype of each field should match with respective fields in both the query. (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