Hello,
I figured out the place where the cookie gets set in Galaxy and then add secure to that. Apache configuration didn't work well.
added the following code into function "set_cookie" in:
lib/galaxy/web/framework/__init__.py
def set_cookie( self, value, name='galaxysession', path='/', age=90, version='1' ):
try:
self.response.cookies[name]['secure'] = True
except CookieError, e:
log.warning( "Error setting secure attribute in cookie '%s': %s" % ( name, e ) )
I tested by running the following, now I can see the flag "secure" in the set-cookie
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/1.1 200 OK
Date: Mon, 06 May 2013 14:50:16 GMT
Server: PasteWSGIServer/0.5 Python/2.6.6
content-type: text/html; charset=UTF-8
Set-Cookie: galaxysession=7cf35ade3e68eef6c0bd6866318609b987df86a0d50ecc280f02efaa5966a9aa59ce7177812bed97; expires=Sun, 04-Aug-2013 10:50:16 GMT; httponly; Max-Age=7776000; Path=/; secure; Version=1
Connection: close
Transfer-Encoding: chunked
100 25395 0 25395 0 0 35881 0 --:--:-- --:--:-- --:--:-- 69575
--Vipin