Pages

Showing posts with label Sessions. Show all posts
Showing posts with label Sessions. Show all posts
Friday, December 30, 2011

ASP.NET State Management- Part3

0 comments


Limitations of Storing the session data within web server as an In-Process data:-

1.Inspite the site is maintained  in more than one webserver if the session data is stored as an InProcess data within webserver and if that server crashes then the other webserver cant read the session data and hence the response will not be provided to the client.

2. No Reliability:- Sessions  will be lost when appdomain is recycled[saving web.config or restarting webserver will recycle appdomain]
     To check :- open a website using sessions , execute it, now save changes on web.config while website is running ,now access the session data it will raise error because session expires due to saving changes in web.config file.

3. No Solution for Web Farming:- Web Farming is the concept of running different websites on default webservers as a one unit, this is implemented as a part of load balancing.
                Browser ---------------------------------- |         webserver
                                                                                            | ------- website1----session
                                                                                            |           
                                                                                            |---- Webserver----session[new]
                                                                                                         Website2
The single session cant be maintained for client within webfarming towards process dependent session.
Continue reading →

ASP.NET State Management- Part2

0 comments

Using Sessions: - It is used to maintain the user information across the web form present within the website by storing the data at the server side.
  
Enhancements for Sessions:-
  • ASP.NET supports cookie-based sessions and cookie-less sessions.[mainly all tech. supports only cookie-based sessions]
  • ASP.NET supports to enable or disable the sessions as per the requirement.
  • ASP.NET can maintain the session data as an In-process data i.e. within the webserver and also has an capability to maintain the data as an Out-process data i.e. within the StateServer or SqlServer database.[mainly all other tech. maintain within webserver only]
 
Continue reading →

ASP.NET State Management- Part1

0 comments


IIS [Internet Information Services]provided by Microsoft

ASP.NET towards windows requires IIS5.0 or later
ASP.NET towards Linux requires Apache webserver

-> After installing IIS:-

http://localhost ---> if it is personal pc

http://servername ---> if IIS is running in remote location [network environment]

Continue reading →