nginxinc / nginx-ldap-auth

Example of LDAP authentication using ngx_http_auth_request_module
BSD 2-Clause "Simplified" License
683 stars 202 forks source link

cookies timeout [feature] #4

Closed doomzhou closed 8 years ago

doomzhou commented 8 years ago

i write cookies timeout code

expiretime = datetime.now() + timedelta(minutes=1)
enc = base64.b64encode(user + ':' + passwd)
self.send_header('Set-Cookie', 'nginxauth=' + enc + '; httponly; Expires=%s' % expiretime.strftime('%d-%b-%y %H:%M:%S'))

but not working, any suggest?

vl-homutov commented 8 years ago

Please do not use issue tracker to ask questions. If you want to add a feature, you may develop it and create pull request.