Pyramid.security questions: Double cookies? Insecure cookies? Expiration?
问题 I'm taking my first foray into the Pyramid security module. I'm using this login code to set the auth_tkt: @view_config(route_name='LoginForm', request_method='POST', renderer='string') class LoginForm(SimpleObject): def __call__(self): emailAddress = self.request.params.get('emailAddress') password = self.request.params.get('password') if emailAddress != 'testemail@gmail.com' or password != 'testpassword': errorDictionary = { 'message' : "Either the email address or password is wrong." }