2017-11-13 18 views
0

4 개의 웹 모듈 ("acme1", "acme2", "acme3"및 "acme4")이있는 "Acme"라는 WebSphere 응용 프로그램이 있습니다. IE의, acme2의 4 웹 모듈의 하나를 다음과 같습니다.WebSphere wsadmin : 응용 프로그램의 특정 웹 모듈에 대한 세션 관리 덮어 쓰기

  • 재정의 세션 관리.
  • 안함
  • "설정 세션 쿠키 것은 오직 크로스 사이트 스크립팅 공격을 방지하기 위해 HTTP와"

아래의 스 니펫을 통해 애플리케이션 수준에서 세션 관리를 재정의하는 방법을 알아 냈지만 웹 모듈 수준에서는 그렇지 않았습니다.

application = AdminConfig.getid('/Deployment:Acme/') 
mainObject = AdminConfig.showAttribute(application, 'deployedObject') 
SessionManagerAttrs = [['sessionManagement', [['enable', 'true'], ['defaultCookieSettings', [['path','/'], ['useContextRootAsPath', 'false'], ['name', 'JSESSIONID'], ['httpOnly', 'false']]]]]] 

AdminConfig.create('ApplicationConfig', mainObject, SessionManagerAttrs) 

아이디어가 있으십니까?

답변

0

This IBM KnowledgeCenter topic은 wsadmin 스크립팅을 사용하여 웹 모듈 수준에서 세션 관리 속성을 설정하는 방법을 설명합니다.