Solved

State Management - Session, ViewState, Cookies, Cache

Posted on 2011-03-09
3
1,086 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
ID: 35092280
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 35092347
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
ID: 35114594

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

910 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

22 Experts available now in Live!

Get 1:1 Help Now