Uw beste bron van informatie en nieuws ongeveer software, uitzicht en vensters uitzicht op Internet

De ARTIKELEN van het uitzicht BOVENKANT 50 Het Virus van Spyware SOFT van het uitzicht De HULP van het uitzicht

Het vormen de Montages van de Staat van de Zitting voor ASP.NET met IIS 7.0


In de standaardconfiguratie, beheert IIS zittingsstaat op gelijkaardige wijze voor ASP.NET aangezien het zittingsstaat voor ASP beheert. Voorbij de basismontages, echter, hebt u veel meer opties. Voor Asp.net- pagina's, gebruikt u het plaatsen van de Enable Staat van de Zitting van de eigenschap van Pagina's en van Controles als hoofdcontrole of van het beheer van de zittingsstaat aanzetten of IIS te vormen om een read-only zittingsstaat te gebruiken. U gebruikt de eigenschap van de Staat van de Zitting om wijsje te zuiveren hoe het beheer van de zittingsstaat wordt gebruikt.

Door gebrek, handhaaft IIS zittingsstaat in proces zoals ASP. Elke toepassing ASP.NET die op uw server wordt gevormd kan zijn eigen montages van de zittingsstaat hebben. Wanneer u de Dienst van de Staat ASP.NET hebt geactiveerd en het om gevormd automatisch te beginnen, kunt u de staatsbeheer van de uit-van-proceszitting voor ASP.NET gebruiken. Het de staatsbeheer van het uit-van-proces zorgt ervoor dat de informatie van de zittingsstaat wordt bewaard wanneer het de arbeidersproces van een toepassing wordt gerecycleerd. U kunt het beheer van de uit-van-processtaat vormen om een Server van de Staat of een gegevensbestand van de Server van Microsoft te gebruiken SQL. Alvorens u een SQL Server voor zittingsstaat vormt, moet u het manuscript InstallSqlState.sql op de server in werking stellen. Door gebrek, wordt dit manuscript opgeslagen in %SystemRoot% \ Microsoft.NET \ Kader \ FrameworkVersion, waar FrameworkVersion de versie van het .NET Kader is u, zoals V2.0.50727 gebruikt.

U zet of van het beheer van de zittingsstaat aan of gebruikt een read-only zittingsstaat door deze stappen te volgen:

1. In Manager IIS, navigeer op het niveau van de configuratiehiërarchie u, dan de pagina van Pagina's beheren en wilt tonen en van Controles door de eigenschap van Pagina's tweemaal te klikken en van Controles.

2. Voor de pagina van Pagina's en van Controles, toont het de tekstvakje van de Enable Staat van de Zitting de huidige zittingsstaat. Zonodig, verander dit het plaatsen aan Vals om het onderhoud onbruikbaar te maken van de zittingsstaat, Waar om het onderhoud van de zittingsstaat toe te laten, of ReadOnly om een read-only zittingsstaat te gebruiken.

3. In de ruit van Acties, is de klik van toepassing om uw montages te bewaren.


Zodra u een Lees-schrijf of ReadOnly zittingsstaat hebt toegelaten, kunt u de montages van de eigenschap van de Staat van de Zitting gebruiken om de configuratie van de zittingsstaat te optimaliseren. Volg deze stappen:

1. In Manager IIS, navigeer op het niveau van de configuratiehiërarchie u, dan de pagina van de Staat van de Zitting beheren en wilt tonen door de eigenschap van de Staat van de Zitting tweemaal te klikken.

2. Op het kader van de Montages van de Wijze van de Staat van de Zitting in de belangrijkste ruit, gebruik de volgende opties om de wijze van de zittingsstaat te plaatsen:

• Toegelaten niet Uitgezocht deze optie om zittingsstaat onbruikbaar te maken.

• In Process Select this option to store session state data for a managed-code application in the worker process where the application runs. This is the default setting.

• Custom Select this option to configure IIS to use a custom provider to handle session state for ASP.NET applications.

• State Server Select this option to enable the ASP.NET State Service and store session state data outside the worker process where the application runs. The ASP.NET State Service stores the session state in an internal database by default or in a database of your choosing. You must start the service and configure it for automatic startup.

• SQL Server Select this option to configure IIS to use a SQL Server database to store session state data instead of storing it in the worker process where the application runs. The ASP.NET State Service stores the session state in the SQL Server database you designate. You must start the service and configure it for automatic startup.

3. With the State Server or SQL Server option, the Connection String text box sets the connection string that is used to connect to the state server or SQL Server. If you click the related selection drop-down list, you can choose a previously created connection string to use. If you click the related Create button, you create the required connection string by using the Create Connection String dialog box.

4. With the State Server or SQL Server option enabled, the related Time-Out text box sets the time, in seconds, that the connection will be maintained. The default for a state server is 10 seconds. The default for a server running SQL Server is 30 seconds.

5. With the SQL Server option enabled, you can select the Enable Custom Database check box to enable a custom SQL Server database for storing session state data.

6. On the Cookie Settings pane, in the Mode drop-down list, select the desired item to specify how cookies are used to store session state data. The items are:

• Auto Detect IIS uses cookies if the browser supports cookies and cookie support is enabled. Otherwise, IIS doesn't use cookies.

• Use Cookies Allows IIS to track the session state by using cookies. IIS passes the session state in cookies for all requests between a client browser and the Web server. Because cookies do not require redirection, cookies allow you to track session state more efficiently than any of the methods that do not use cookies. Using cookies also has several other advantages. Cookies allow users to bookmark Web pages, and they ensure that state is retained if a user leaves one site to visit another and then returns to the original site.

• Use Device Profile IIS uses cookies if the device profile supports cookies regardless of whether cookie support is enabled or disabled. The only time that IIS doesn't use cookies is when the device profile indicates that the browser doesn't support cookies.

• Use URI IIS inserts the session ID as a query string in the Uniform Resource Identifier (URI) request, and then the URI is redirected to the originally requested URL. Because the changed URI request is used for the duration of the session, no cookie is necessary.

7. Keep the following in mind when you are specifying how cookies are used to store session state data:

• When you use the Auto-Detect cookie, Use Device Profile, or Use URI modes, the Regenerate Expired Session ID check box is selected automatically. This ensures that IIS rejects and reissues session IDs that do not have active sessions. You should require that expired session IDs be regenerated because this ensures that IIS expires and regenerates tokens, which gives a potential attacker less time to capture a cookie and gain access to server content. If you want to disable session ID regeneration, as may be necessary when initially testing a new deployment in a development environment, clear this check box. Be sure to re-enable this feature later to enhance server security.

• When you use the Auto-Detect cookie, Use Cookies, or Use Device Profile modes, the entry in the Time-Out (In Minutes) text box sets the period of time that IIS maintains a session object after the last request associated with the object is made. The default time-out is 20 minutes. For a high-usage application in which you expect users to move quickly from page to page, you might want to set a fairly low time-out value, such as 5 or 10 minutes. On the other hand, if it's critical that the user's session is maintained to complete a transaction, you might want to set a long time-out value, such as 60 minutes.

• When you use the Auto-Detect cookie, Use Cookies, or Use Device Profile modes, the Name text box sets a name for the cookie. The default is ASP.NET_SessionId. To enhance security, you may want to change this value to a name that isn't as readily identifiable as the session ID.

• The Use Hosting Identity For Impersonation option enables Windows authentication for remote connections using the host process identity. Typically, this is the setting you want to use to ensure that IIS can read and write session state data.

8. In the Actions pane, click Apply to save your settings.

Source of Information : Microsoft Press Internet Information Services IIS.7.0 Administrators Pocket Consultant
Popularity: 1%


Written by magakos. Read more great feeds at is source WEBSITE
no comments.
Read more articles on IIS 7.0 and otherSoftware.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .