Problem with Setting Cookie

asked 2019-06-25 18:26:39 +0800

stan1996 gravatar image stan1996
1 1

Cookies, something comes, something does not come, I can not understand what the problem is - sometimes it can be cut from the third or fourth click, sometimes from the first, from what it can arise? I use tomkat 6.0.26

delete flag offensive retag edit


As you phrased your question I can't tell whether it's a tomcat or a ZK problem. Can you please provide an example of how you are trying to set the Cookie? And especially how this is click related?

cor3000 ( 2019-06-26 10:31:15 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-07 11:19:14 +0800

superium gravatar image superium
29 5

why not try the latest tomcat, and set cookies like this:

                    HttpServletResponse response = (HttpServletResponse) Executions.getCurrent().getNativeResponse();
                Cookie userCookie = new Cookie("user", username);
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2019-06-25 18:26:39 +0800

Seen: 12 times

Last updated: Aug 07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More