Forum Discussion
Jason_Hook_4092
Nimbostratus
Jan 20, 2010v10 cookie insert problem
I have a very simple problem.
I have some logic that checks for the existence of a cookie and if it's missing, add one with a value.
When I add the cookie however, I get a comma then...
Jason_Hook_4092
Nimbostratus
Jan 20, 2010This is what I see on the wire to the web server coming from LTM:
GET /HPOEWB.WEB/HPOEWBTestPage.aspx?tfThomletId=3761 HTTP/1.1
Accept: */*
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Host: host.com
Connection: Keep-Alive
Cookie: TF_SESSION=Z1NBCMSse/6Cm5P5w5eaGnxgtaCFRAhr05x5fp6Tt07GQOYozs3rI1tgDKooBNYzkhLfJQH39wVm+4MMkN3//PDS3hsxOV2rc865N09gwQJplextFRyPbhiGvn3RO+Y5Eun13hkcm6Yj9jfZBGc8qUbVJ777IhEh1JopBp6/UpHXUxCfoZTRdG9wJfkHUCAcfjDs8wdOU3Oi1weMPMp7l3v9Aq+ElGDXhpHkzMT4QXQ=; X-WE-SessionId=Z1NBCMSse/6Cm5P5w5eaGnxgtaCFRAhr05x5fp6Tt07GQOYozs3rI1tgDKooBNYzkhLfJQH39wVm+4MMkN3//PDS3hsxOV2rc865N09gwQJplextFRyPbhiGvn3RO+Y5Eun13hkcm6Yj9jfZBGc8qUbVJ777IhEh1JopBp6/UpHXUxCfoZTRdG9wJfkHUCAcfjDs8wdOU3Oi1weMPMp7l3v9Aq+ElGDXhpHkzMT4QXQ=; TFSessionId=Z1NBCMSse/6Cm5P5w5eaGnxgtaCFRAhr05x5fp6Tt07GQOYozs3rI1tgDKooBNYzkhLfJQH39wVm+4MMkN3//PDS3hsxOV2rc865N09gwQJplextFRyPbhiGvn3RO+Y5Eun13hkcm6Yj9jfZBGc8qUbVJ777IhEh1JopBp6/UpHXUxCfoZTRdG9wJfkHUCAcfjDs8wdOU3Oi1weMPMp7l3v9Aq+ElGDXhpHkzMT4QXQ=
Cookie: TF_Framework_Cookies=T1Domain=T1Thick;
apparently my comma is due to a 2nd "Cookie" cookie.
The documentation states:
HTTP::cookie insert name value [path ] [domain ] [version <0 | 1 | 2>]
Adds a cookie to the HTTP Cookie header in requests or Set-Cookie response header. The default value for the version is 0. If the cookie already exists, a second cookie will be inserted (tested in 9.2.4).
I was assuming when it says if the cookie exists it will add a 2nd one it means a second cookie, not a 2nd cookie header
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