Sessions can authorize by browsers and IP addresses. Exception SessionAuthorizationError is raised when accessed with browser or IP address that are different from ones when a session created.
Set up methods of authorization with the following attributes. If the attributes is true, the mechanism is enabled.
Attribute | Default | Description |
---|---|---|
auth_by_user_agent |
false |
Authorizes by browser. |
auth_by_remote_addr |
false |
Authorizes by IP address. |