Forum Discussion
Prasad_Patil_13
Nimbostratus
Oct 29, 2013Unable to set expiration time and cookie name for persistence profile
I am using Big-IP trial version 10.1.0. I want to create persistence profile using PowerShell script. Below is the code: $profileName="Test";
$mode = New-Object -TypeName iControl.LocalLBPer...
Prasad_Patil_13
Nimbostratus
Mar 05, 2014I have solved this issue by removing $cookieName.default_flag = "false"; line.
Final code:
$profileName="Test";
$mode = New-Object -TypeName iControl.LocalLBPersistenceMode;
$mode='PERSISTENCE_MODE_COOKIE';
$modes=(,$mode)(Get-F5.iControl).LocalLBProfilePersistence.create($profileName,$modes);
$profiles = (, $profileName);
$cookieName = New-Object -TypeName iControl.LocalLBProfileString;
$cookieName.value = "cookie-New";
$cookieNames = (, $cookieName);
(Get-F5.iControl).LocalLBProfilePersistence.set_cookie_name($profiles,$cookieNames);
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects