Tuesday, April 16, 2013

設定工作階段逾時 Configure Session Time-out (IIS 7)

timeout
今天友人 M 氏問我了一個關於IIS設定的問題,他要設定IIS上的session timeout,但是參考了technet上的教學"設定工作階段逾時 (IIS 7)"卻失敗,因為他主要對php比較熟,所以就來問我了...


yoo

因為某些原因所以他不能用UI去設定,所以 M sir 只能用command去設定timeout,但是沒想到technet上寫的居然是錯誤的,英文版(Configure Session Time-out (IIS 7))也是錯的,後來研究一下,發現其實不難,只是有個參數technet寫錯了....

原本TechNet上是寫這樣
appcmd set config /section:asp /timeout: timeSpan

但是/timeout這個參數是錯的,應該要用/session.timeout才是對的。

舉例來說,如果要用command-line將session timeout設定成15分鐘,指令應該是這樣。
%windir%\system32\inetsrv\appcmd set config /section:asp /session.timeout:00:15:00

結果大概會像下面這樣

command

ok , 結案收工。

3 comments:

  1. Moncler, una marca tradicional con seguidores de culto,moncler jacket venta para hombre hace que el clima frío sea fácil de maniobrar.La mejor chaqueta Moncler copia Las chaquetas acolchadas súper suaves y los estilos encapuchados ofrecen una variedad de opciones que resultarán indispensables durante los climas cada vez más impredecibles de la temporada.

    ReplyDelete
  2. Rolex watches are crafted from the finest raw materials and assembled with scrupulous attention to detail. cheap replica watchesEvery component is designed, replica rolex watchesdeveloped and produced in-house to the most exacting standards.

    ReplyDelete
  3. Buy a discounted IWC watch from this Time and get free shipping. Large selection in stock. replica watches UKIWC watches, is an iconic brand. The IWC Portuguese, replica IWC watches sale a collection that includes the IWC Portuguese automatic and IWC Yacht Club chronograph is legendary. IWC Schaffhausen is also known for the IWC Aquatimer, Top Gun, Big Pilot watch, Mark XVII, Pilot's Watch, Spitfire chronograph and their Big Pilot Watch, the St-Exupery.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...