• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting SET-COOKIE Response header in Filter  RSS feed

 
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

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!