• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting SET-COOKIE Response header in Filter

vivek shankare gowda
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using JBoss 4.2.1 application server. I want to add secure flag and http only attributes to SET-COOKIE response header. So I have written a filter to do that. When I start the server and hit the page, The response header is not appering, But when ever I refresh the page I am able to see the header. What Would be the problem?

My code is as follows
Web.xml configuration

Filter code

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!