Configuring Session State Settings for ASP.NET with IIS 7.0 ASP.NET用のIIS 7.0でセッションの状態を設定する
In the default configuration, IIS manages session state for ASP.NET in much the same way as it manages session state for ASP.としてのASPのセッションの状態を管理し、デフォルトの設定では、 ASP.NET用のIISとほぼ同じ方法でセッションの状態を管理している。 Beyond the basic settings, however, you have many more options.基本的な設定以外にも、しかし、多くのオプションがあります。 For ASP.NET pages, you use the Enable Session State setting of the Pages And Controls feature as the master control to turn on or off session state management or to configure IIS to use a read-only session state. ASP.NETページの場合は、有効にするセッション状態のページとは、マスタコントロールとしてコントロール機能をオンまたはオフまたはセッション状態管理を構成するIISには、読み取り専用のセッション状態を使用するように有効にする設定を使用しています。 You use the Session State feature to fine tune how session state management is used.セッションの状態を管理する曲をどのように使われている罰金のセッション状態機能を使用します。
By default, IIS maintains session state in process as does ASP.デフォルトでは、 IISプロセスでセッションの状態を維持し、 ASPのではない。 Each ASP.NET application configured on your server can have its own session state settings.各ASP.NETアプリケーションをサーバー上で、独自のセッション状態の設定を構成することができます。 When you've activated the ASP.NET State Service and configured it to start automatically, you can use out-of-process session state management for ASP.NET.ときには、 ASP.NET状態サービスを活性化し、それが自動的に起動するように設定すると、プロセスのASP.NETのセッション状態管理を使用することができます。 Out-of-process state management ensures that session state information is preserved when an application's worker process is recycled.アウトプロセス状態管理アプリケーションのワーカープロセスがリサイクルされるセッション状態情報が保存されていることを保証します。 You can configure out-of-process state management to use a State Server or a Microsoft SQL Server database.の構成することができますアウトプロセスの状態管理は、国家ServerまたはMicrosoft SQL Serverデータベースを使用する。 Before you configure a SQL Server for session state, you must run the InstallSqlState.sql script on the server.セッション状態を構成するSQL Serverの前に、サーバー上のスクリプトを実行するInstallSqlState.sqlする必要があります。 By default, this script is stored in %SystemRoot%\Microsoft.NET\Framework\FrameworkVersion, where FrameworkVersion is the version of the .NET Framework you are using, such as V2.0.50727.デフォルトでは、このスクリプトの% SystemRoot % \ Microsoft.NET \ Frameworkの\ FrameworkVersion 、 FrameworkVersionの。 NET Frameworkの場合、 V2.0.50727などを使用しているのバージョンが格納されます。
You turn on or off session state management or use a read-only session state by following these steps:セッション状態管理をオンまたはオフ、または読み取り専用のセッション状態を使用して、次の手順で有効に:
1. 1 。 In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then display the Pages And Controls page by double-clicking the Pages And Controls feature. IISマネージャでは、管理したい階層のレベルに設定し、移動は、ページとコントロール機能をダブルクリックして、ページとコントロールのページが表示されます。
2. 2 。 On the Pages And Controls page, the Enable Session State text box shows the current session state.コントロールは、ページとページで、セッション状態を有効にする]テキストボックスでは、現在のセッションの状態を示しています。 As necessary, change this setting to False to disable session state maintenance, True to enable session state maintenance, or ReadOnly to use a read-only session state.必要に応じて、セッション状態を無効にメンテナンスをFalseにこの設定を変更すると、読み取り専用のセッション状態を使用するようにセッションの状態を維持、または読み取り専用を有効にする真。
3. 3 。 In the Actions pane, click Apply to save your settings.アクションペインで、 [適用して設定を保存してください。
Once you've enabled a ReadWrite or ReadOnly session state, you can use the settings of the Session State feature to optimize the session state configuration.一度ReadWriteか、読み取り専用のセッション状態の場合は、セッション状態の構成を最適化するためには、セッション状態機能の設定を使用することができますが有効になりました。 Follow these steps:次の手順に従ってください:
1. 1 。 In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then display the Session State page by double-clicking the Session State feature. IISマネージャでは、管理したい階層のレベルに設定し、移動は、セッション状態機能をダブルクリックして、セッション状態のページが表示されます。
2. 2 。 On the Session State Mode Settings frame in the main pane, use the following options to set the session state mode:メインウィンドウには、セッション状態モードの設定フレームで、セッション状態モードを設定するには、以下のオプションを使用します:
• Not Enabled Select this option to disable session state. •しないセッション状態を無効にするこのオプションを選択可能。
• 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. •カスタムこのオプションを選択するように設定IISのASP.NETアプリケーションのセッション状態を処理するために、カスタムプロバイダを使用してください。
• 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. •状態サーバーはこのオプションを選択ASP.NET状態サービスとは、ワーカープロセス外のセッション状態データストアを有効にするには、アプリケーションが実行されます。 The ASP.NET State Service stores the session state in an internal database by default or in a database of your choosing.デフォルトまたは任意のデータベース内では、内部データベースには、 ASP.NET状態サービス店は、セッション状態。 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. • SQL Serverを選択すると、このオプションを構成するIISの代わりに、ワーカープロセスでのセッション状態を格納するデータを格納するためのSQL Serverデータベースを使用するようにここでは、アプリケーションが実行されます。 The ASP.NET State Service stores the session state in the SQL Server database you designate.は、 SQL Serverデータベースには、 ASP.NET状態サービス店は、セッション状態を指定します。 You must start the service and configure it for automatic startup.あなたはサービスと自動起動の設定を開始する必要があります。
3. 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.国家ServerまたはSQL Serverのオプションを使用すると、接続文字列のテキストボックスには、状態サーバーまたは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. 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.国家ServerまたはSQL Serverのオプションを使用すると、関連するタイムアウト時間を設定するテキストボックスを有効にし、数秒では、接続が維持されます。 The default for a state server is 10 seconds.状態サーバーのデフォルトは10秒です。 The default for a server running SQL Server is 30 seconds. SQL Serverを実行し、サーバーのデフォルトは30秒です。
5. 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.とは、 SQL Serverオプションを有効にすると、セッション状態データを格納するためのカスタムSQL Serverデータベースを有効にするカスタムデータベースを有効にする]チェックボックスを選択することができます。
6. 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. Cookieの設定]ウィンドウの一覧で、ドロップモードでは、下にはクッキーをどのようにデータを格納するために使用されているセッションの状態を指定するために必要なアイテムを選択してください。 The items are:の項目は:
• Auto Detect IIS uses cookies if the browser supports cookies and cookie support is enabled. •自動検出IISを有効になっている場合は、ブラウザのクッキークッキーとクッキーのサポートをサポートしています使用しています。 Otherwise, IIS doesn't use cookies.それ以外の場合は、 IISは、 Cookieを使用することはありません。
• Use Cookies Allows IIS to track the session state by using cookies. • Cookieを使用可能にクッキーを使用して、セッションの状態を追跡するためにIISの。 IIS passes the session state in cookies for all requests between a client browser and the Web server. IISのCookieには、クライアントのブラウザとWebサーバー間のすべてのリクエストに対しては、セッションの状態を渡します。 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.クッキーをユーザーがWebページをブックマークすることができますし、ユーザーが別の場合に復帰し、元のサイトを訪問する1つのサイトの葉その状態が保持されますことを確認します。
• Use Device Profile IIS uses cookies if the device profile supports cookies regardless of whether cookie support is enabled or disabled. •デバイスプロファイルを使用してIISのクッキークッキーの場合は、デバイスのプロファイルをサポートするかどうかに関係なく有効になっている、または無効のCookieをサポートしています使用しています。 The only time that IIS doesn't use cookies is when the device profile indicates that the browser doesn't support cookies.唯一の時間は、 IISのクッキーを使用しないときは、デバイスプロファイルは、ブラウザのCookieをサポートしていないことを示します。
• 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.セッションは、統一資源識別子( URIの)でクエリ文字列としてリクエストIDは、 URIにリダイレクトされます• IISを使用してURIを挿入して、本来のURLに要求されました。 Because the changed URI request is used for the duration of the session, no cookie is necessary.クッキー必要がないため、 URIの変更要求は、セッションの期間中は、使用している。
7. 7 。 Keep the following in mind when you are specifying how cookies are used to store session state data:心の中でどのようにCookieをしたときのセッション状態データを格納するために使用されている次のままに指定されている:
• When you use the Auto-Detect cookie, Use Device Profile, or Use URI modes, the Regenerate Expired Session ID check box is selected automatically. •ときは、使用するデバイスプロファイル、またはURIのモードを使用して、期限切れのセッションを再生成する]チェックボックス番号を自動的に選択されている自動検出Cookieを使用しています。 This ensures that IIS rejects and reissues session IDs that do not have active sessions.これは、 IISを拒否し、アクティブなセッションを持っていないセッションID reissuesを保証します。 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.これは、 IISの有効期限が切れるようにし、潜在的な攻撃者は、クッキーとサーバーのコンテンツにアクセスをキャプチャする短い時間を与えるトークンを、再生成さあなたは、期限切れのセッションIDを再生成する必要しなければならない。 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.セッションを無効にしたい場合は、最初のときは、開発環境では、このチェックボックスをオフに新しい展開のテストが必要になるかもしれないが、再生のID 。 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. •自動検出するときにクッキー、 Cookieを使用、または使用してデバイスプロファイルモード、タイムアウトのエントリ分で( )のテキストボックスを使用して期間は、 IISの最後の要求は、セッションオブジェクトに関連付けられた後の維持セットオブジェクトが作られています。 The default time-out is 20 minutes.デフォルトのタイムアウトは20分。 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.ユーザはすぐにページからページに移動することを期待するの高いアプリケーションを使用する場合は、かなりの時間を設定することが低値を、 5または10分など。 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.その一方で、そのユーザのセッションがトランザクションを完了するには維持されている重要なのは、長い時間を設定することも値を、 60分など。
• When you use the Auto-Detect cookie, Use Cookies, or Use Device Profile modes, the Name text box sets a name for the cookie. •自動検出するときにクッキー、 Cookieを使用、または使用してデバイスプロファイルのモードを使用すると、 [名前のテキストボックスには、クッキーの名前を設定します。 The default is ASP.NET_SessionId.デフォルトの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.セキュリティを強化するには、セッションIDとして容易に特定できるようにされていない名にこの値を変更する必要があります。
• The Use Hosting Identity For Impersonation option enables Windows authentication for remote connections using the host process identity. •このオプションを使用してホスティングアイデンティティの偽装については、リモート接続のホストプロセスIDを使用してWindows認証が可能になります。 Typically, this is the setting you want to use to ensure that IIS can read and write session state data.通常、このようにされている場合は、 IISを読むことができるとセッション状態データの書き込みを使用するように設定します。
8. 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 情報ソース: Microsoft PressのインターネットインフォメーションサービスIIS.7.0管理者のポケットコンサルタント
Written by magakos. magakosが記されている。 Read more great feeds at is source フィードを読んでさらにお得なソースです WEBSITE WEBサイト
no comments コメントはありません . 。
Read more articles on の詳細記事を読む IIS 7.0 のIIS 7.0 and および otherSoftware otherSoftware . 。
- [+] Digg [ + ]ディグ : Feature this article :この記事は特集
- [+] Del.icio.us [ + ] Del.icio.us : Bookmark this article :この記事をブックマーク
- [+] Furl [ + ]畳む : Bookmark this article :この記事をブックマーク















