• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clarification about secure cookie

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't look like relevant forum, but I couldn't find anything better matching. So, what's is browser behavior if it receives session cookie over https without secure attribute? Will such cookie be accepted, rejected? Can somebody also give an idea how session cookie be hijacked over https?

Ahother concern is about tightening a session cookie with client IP. Is it something that supported by any servlet container? Is it reasonable?
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A cookie sent over an established HTTP session is as secure as any other traffic, however it might be possible for a virus on the clients computer to exploit that cookie.

Are you using container managed sessions?
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I just figured that browser will send cookie with secure attribute only to https part if both http and https present.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!