Solved

State Management - Session, ViewState, Cookies, Cache

Posted on 2011-03-09
3
1,072 Views
Last Modified: 2012-08-14
Hello Experts !

My Query:

1) What Is State Management ? How we achieve it in web dev project ?

2) Diff b/w sessions, cookies, application state, query string, cache, in simple words, where & when or at what scenarios do we use them individually ?

3) Diff Types of Modes in Session & Cookie ? In which file of the application do we modify or mention the mode ?

4) What happens if we disable the cookie in our application ? How information is saved or passed, any default ?

5) What is the default time for a session object ? & how can we modify it ?

6) What is application state ?

7) How to save and retrieve values from application state, cookies, session, viewstate ?

Thanx in advance for providing me your valuable time 2 help me out !
0
Comment
Question by:mdkshah
3 Comments
 
LVL 14

Expert Comment

by:robasta
Comment Utility
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
Comment Utility
That are a lot question (I only can give some good links with information, because it's just too much to post here) .
I think it's better to search a good book ....

1. ASP.NET State Management
    http://en.csharp-online.net/ASP.NET_State_Management

2. Session ,Caching ,View state and Query string
   http://forums.asp.net/t/1520451.aspx/1?Session+Caching+View+state+and+Query+string

3. The Difference Between Cookies and Sessions
     http://php.about.com/od/learnphp/qt/session_cookie.htm

4. ASP.NET Session State (config.web file used to configure the session state settings for an ASP.NET application)
     http://msdn.microsoft.com/en-us/library/ms972429.aspx

6. ASP.NET Application State Overview
    http://msdn.microsoft.com/en-us/library/ms178594.aspx

7. Reading and Writing Cookies in ASP.NET and C#
    http://www.aspnettutorials.com/tutorials/network/cookies-csharp.aspx
 
    Code: Reading a Value From View State (Visual C#)
       http://msdn.microsoft.com/en-us/library/aa287536(v=vs.71).aspx
    Code: Saving a Value in View State (Visual C#)
       http://msdn.microsoft.com/en-us/library/aa287543(v=vs.71).aspx

    Reading And Writing A Session  
        http://www.snippetbank.net/detail/snippetdetail/9-aspcsharp/20-statemanagement/159-Reading-And-Writing-A-Session.html

0
 

Author Comment

by:mdkshah
Comment Utility

Closing Comment


Hello Experts !

Thanx Dhaest for quick solution. The information provided by you was very useful for easy understanding.

Best Regards !
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now