weblogicweblogic12cwlst

WebLogic 12c, how to set console cookie name with WLST


In the admin console, I can set the admin console cookie name under Domain -> Configuration -> General -> Advanced -> Console Cookie Name

How do I set the values using WLST in offline mode?


Solution

  • Here is a sample script to update the cookie domain :

    readDomain(<FULL PATH TO YOUR DOMAIN>)
    create('NO_NAME_0','AdminConsole')
    cd ('AdminConsole')
    cd ('NO_NAME_0')
    set('CookieName','<NEW COOKIE NAME>>')
    updateDomain()
    closeDomain()