| 137 | | cookie[cookie_name]['max-age'] = sess.session_timeout * 60 |
|---|
| 138 | | cookie[cookie_name]['version'] = 1 |
|---|
| | 137 | # We'd like to use the "max-age" param as |
|---|
| | 138 | # http://www.faqs.org/rfcs/rfc2109.html indicates but IE doesn't |
|---|
| | 139 | # save it to disk and the session is lost if people close |
|---|
| | 140 | # the browser |
|---|
| | 141 | # So we have to use the old "expires" ... sigh ... |
|---|
| | 142 | #cookie[cookie_name]['max-age'] = sess.session_timeout * 60 |
|---|
| | 143 | gmt_expiration_time = time.gmtime(time.time() + |
|---|
| | 144 | (sess.session_timeout * 60)) |
|---|
| | 145 | cookie[cookie_name]['expires'] = time.strftime( |
|---|
| | 146 | "%a, %d-%b-%Y %H:%M:%S GMT", gmt_expiration_time) |
|---|