[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

JForumExecutionContext.getRequest().getCookies() Doesn't Pick Up All Cookies RSS feed
討論區首頁 » Developer Forum
發表人 內容
vTest


註冊時間: 2013/1/16
文章: 14
離線
I use ControllerUtils.getCookie(String name) function to retrieve a cookie. Although the cookie is there, the function return null. With a debugger, I find the JForumExecutionContext.getRequest().getCookies() doesn't pick up all cookies. It only picks up 10 cookies while there are 12 cookie. I can't see any differences in domain nor path for cookies picked up by the function and cookies are not picked up by the function. How to make sure a cookie will be picked up by the function?
andowson


註冊時間: 2011/6/30
文章: 250
離線
What are your cookies's name?
Are they all ASCII characters?

See this if they help:
http://www.velocityreviews.com/forums/t144469-with-request-getcookies-i-do-not-get-all-cookies.html
http://stackoverflow.com/questions/1969232/allowed-characters-in-cookies
http://www.ietf.org/rfc/rfc2965.txt
vTest


註冊時間: 2013/1/16
文章: 14
離線
I write my cookie retrieval function and have the same result. So, the problem isn't related with the JForumExecutionContext.getRequest().getCookies().

I can retrieve the cookie right after it was created. I guess the problem likely relates with the cookie age.
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer