Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is there a way to set a header key based on SSL ID value with HAProxy 1.5? We would like to use the SSL ID as the session ID for clients who do not support cookies.

share|improve this question
See for limitation on SSL ID's – Zabuzzman Apr 27 '13 at 18:01
I assume you are using SSL offloading on the HAproxy? – Zabuzzman Apr 27 '13 at 18:01

First, to my knowledge, the answer is no.

However, there are other handy techniques to handle folks who do not support cookies. Provided that Javascript is supported, take a page out of Microsoft's book and try something that's actually pretty cool about ASP.NET apps.

Add a Javascript on_click handler to every link and an on_submit to forms. Then simply generate a post that contains the session ID, which is hidden in a hidden field or embedded in the Javascript. Works quite well and removes the requirement for cookies.

For more information see here:

To be clear, I'm not suggesting that you use ASP.NET. I'm just suggesting that you use the technique. :)

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.