I have several modules(say Mod1) under my deployed application's(say App) manage modules and for the modules Mod1 I have to do these things:
Under General properties, 1. Check the box Override session management and click Apply. 2. Click the Enable cookies link under Session tracking mechanism. 3. Under General properties, uncheck the box Set session cookies to HTTP Only to help prevent cross-site scripting attacks and click Apply.
So far I could get myself to only check or uncheck the Override session management option under my application by first getting its id using the following code, but I am not able to figure out how to do the above 3 things for a module under my application.
appName = AdminConfig.getid('/Deployment:FileNetEngine/')
depObject = AdminConfig.showAttribute(appName, 'deployedObject')
sessionMgrAttrs = [['sessionManagement', [['enable', 'true']]]]
AdminConfig.create('ApplicationConfig', depObject, sessionMgrAttrs)
AdminConfig.save()
It would be great if I can get an answer to this in JACL, as I have all my scripts in jacl and I was trying with jython only for this piece.