def secure_cookie():
 return (request.environ['wsgi.url_scheme'] == 'https')

def secure_cookie ( ) : return ( request . environ [ 'wsgi.url_scheme' ] == 'https' )
return true if cookie should have secure attribute .