Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Exchange 2007 SP3 which is exposing outlook web access over only HTTPS. However the server delivers the sessionid cookie without the secure flag set. Even though I don't have port 80 open, this cookie is still vulnerable to being stolen over port 80 in the event of a man-in-the-middle attack. It also contributes to a PCI-DSS failure

Does anyone know if I can persuade the web server/application to set the secure flag?

share|improve this question
up vote 4 down vote accepted

Indeed you can. Your question got me curious so I tested it and it works.

In the web.config of the OWA app (which by default lives in \Program Files\Microsoft\Exchange Server\ClientAccess\Owa on the drive where you installed Exchange), set the following in the <system.web> section:

<httpCookies httpOnlyCookies="true" requireSSL="true"/>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.