By avoiding the following 10 common ASP. NET defects, the website can run smoothly. Release Date:
| Updated on: 2006-07-11
Jeff prosise
This article will discuss:
•
Cache and forms authentication
•
View status
By avoiding the following 10 common ASP. NET defects, the website can run smoothly. Release Date:
| Updated on: 2006-07-11
Jeff prosise
This article will discuss:
•
Cache and forms authentication
•
View status
Method 1:
Add the IP addresses or CIDR blocks allowed for SSH login to/etc/hosts. allow.Sshd: 192.168.1.2: Allow or
Sshd: 192.168.1.0/24: Allow
Add IP addresses not allowed for SSH login to/etc/hosts. DenySshd: All # All indicates that all IP
Viewstate is a new way of State Preservation proposed in. Net (in fact, it is also a new old bottled wine); we know that the traditional Web
Program You can save the status in the following ways:
1. Application: This is the global storage area of
The default format of the web. config file is as follows:
Like any *. config file, Web. config defines the root-level element. It can contain a large number of sub-elements to control web applications.ProgramHow
Cookie is a piece of text information. Storing cookies on the client is one of the methods in which ASP. NET session States associate requests with sessions. Cookies can also be directly used to maintain data between requests, but the data will be
Session StateServer mode is used in recent projects. We know that sessionstate has four modes: Off, inproc, StateServer, and sqlserver. While the States. StateServer is deployed on the same server site in my biggest sense. As long as the
Cookie is a piece of text information. Storing cookies on the client is one of the methods in which ASP. NET session States associate requests with sessions. Cookies can also be directly used to maintain data between requests, but the data will be
In addition, there is a sudden increase in user complaints. When a user complained slowly, your access was fast and the local traffic could not be reproduced? Today, you are so lucky to visit the blog Park. Maybe you have an answer here-if your site
If we are using Session, we will build a high-performance and scalable ASP. NET websites must solve the distributed Session architecture, because the SESSION processing capability of a single server will quickly experience performance bottlenecks,
Common practices for sharing sessions with multiple sites are as follows:
• Use the. net automatic Status Service (Asp.net State Service );• Use the. net Session database;• Use Memcached.• Use cookies to share multiple sites (this method is only
Defines the page-specific (. aspx file) attributes used by ASP. NET page analyzer and compiler.
AttributeAsyncMake the page an asynchronous Processing Program (that is, the page uses the IHttpAsyncHandler implementation to process the request
Due to the stateless nature of the HTTP protocol, in ASP. NET programming, each request is executed from the server to the pipeline process,For ASP. NET pages, the Page object is re-created, and all controls and content are re-generated,Therefore,
The configuration of WCF is located under the system. servicemodel configuration node. You will see three subnodes: behaviors, servicehostingenvironment, and Serivces. Servicehostingenvironment: with ASP. the default configuration of the Net Running
Many users find that the session of the ASP. NET Website will be lost in a short period of time, and they need to log on again frequently.This is because in ASP. NETProgramThe default session storage method is "inproc ". The server limits the user's
Some long-term control measures and prevention measures for non-shared hosts
-- Upload and download, breakthrough _ blank "> firewall and backdoor setup
1. file transmission:
The following methods are implemented without sharing enabled on the
Possible cause 1:
IIS6 under win2003 server is set by default. After more than 20 hours, every worker process running in the default application pool is automatically reclaimed, resulting in the loss of session stored in the process.
Because
In. net, session storage is different from ASP storage. Although ASP and aspx can be run simultaneously under the same IIS, session cannot be transferred between them.Previously, a large number of systems were applied to ASP. During the upgrade
In Web applications such as ASP. NET, session is a common method to save user statuses. However, due to limited server memory space, it is necessary to set the session expiration time. In ASP. NET, how does one set the session expiration time? It's
The WCF session status is associated with a series of message exchanges between the two endpoints. It is actually "instance context", which controls the creation method and storage period of the service object instance. It is very different from ASP.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.