STATE MANAGEMENT IN ASP.NET PART-III

Posted on Updated on

STATE  MANAGEMENT – III

Server-Based State Management Options

ASP.NET offers you an assortment of approaches to keep up state data on the server, as opposed to enduring data on the customer. With server-based state administration, you can diminish the measure of data sent to the customer so as to safeguard state, in any case it can utilize exorbitant assets on the server. The accompanying areas portray three server-based state administration highlights: application state, session state, and profile properties.

ApplicationState

ASP.NET  permits  you  to  spare  qualities  utilizing  application  state  —  which  is  an  example  of  the  HttpApplicationState  class  —  for  every  dynamic  Web  application.  Application  state  is  a  worldwide  stockpiling  component  that  is  available  from  all  pages  in  the  Web  application.  In  this  manner,  application  state  is  valuable  for  putting  away  data  that  should  be  kept  up  between  server  round  outings  and  between  solicitations  for  pages.  For  more  data,  see  ASP.NET  Application  State  Overview.

Application  state  is  put  away  in  a  key/esteem  word  reference  that  is  made  amid  every  demand  to  a  particular  URL.  You  can  add  your  application-particular  data  to  this  structure  to  store  it  between  page  demands.

When  you  add  your  application-particular  data  to  application  express,  the  server  oversees  it.

SessionState

ASP.NET  permits  you  to  spare  values  by  utilizing  session  state  —  which  is  a  case  of  the  HttpSessionState  class  —  for  every  dynamic  Web-application  session.  For  an  outline,  see  ASP.NET  Session  State  Overview.

Session  state  is  like  application  state,  aside  from  that  it  is  perused  to  the  present  program  session.  In  the  event  that  diverse  clients  are  utilizing  your  application,  every  client  session  will  have  an  alternate  session  state.  Likewise,  if  a  client  leaves  your  application  and  afterward  returns  later,  the  second  client  session  will  have  an  alternate  session  state  from  the  first.  Session  state  is  organized  as  a  key/esteem  word  reference  for  putting  away  session-particular  data  that  should  be  kept  up  between  server  round  outings  and  between  solicitations  for  pages.  For  more  data,  see  ASP.NET  Session  State  Overview.

You  can  utilize  session  state  to  fulfill  the  accompanying  assignments: 

Interestingly  recognize  program  or  customer  gadget  demands  and  guide  them  to  an  individual  session  example  on  the  server.

Store  session-particular  information  on  the  server  for  use  over  various  program  or  customer  gadget  asks  for  inside  a  similar  session.

Raise  proper  session  administration  occasions.  What’s  more,  you  can  compose  application  code  utilizing  these  occasions.

When  you  add  your  application-particular  data  to  session  express,  the  server  deals  with  this  protest.  Contingent  upon  which  alternatives  you  determine,  session  data  can  be  put  away  in  treats,  on  an  out-of-process  server,  or  on  a  PC  running  Microsoft  SQL  Server.

Profile Properties

ASP.NET permits you to spare values by utilizing session state — which is a case of the HttpSessionState class — for every dynamic Web-application session. For an outline, see ASP.NET Session State Overview.

Session state is like application state, aside from that it is perused to the present program session. In the event that diverse clients are utilizing your application, every client session will have an alternate session state. Likewise, if a client leaves your application and afterward returns later, the second client session will have an alternate session state from the first.

Session state is organized as a key/esteem word reference for putting away session-particular data that should be kept up between server round outings and between solicitations for pages. For more data, see ASP.NET Session State Overview.

You can utilize session state to fulfill the accompanying assignments:

Interestingly recognize program or customer gadget demands and guide them to an individual session example on the server.

Store session-particular information on the server for use over various program or customer gadget asks for inside a similar session.

Raise proper session administration occasions. What’s more, you can compose application code utilizing these occasions.

When you add your application-particular data to session express, the server deals with this protest. Contingent upon which alternatives you determine, session data can be put away in treats, on an out-of-process server, or on a PC running Microsoft SQL Server.

*****************************************************************************************************

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.
Helpline: 9814666333, 8699444666
Email: info@technocampus.co.in

Please fill the form and we shall contact you soon.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s