Changeset 39:3eebdbe00bd5
- Timestamp:
- 08/02/06 11:04:04
(2 years ago)
- Author:
- Allan Saddi <allan@saddi.com>
- branch:
- default
- convert_revision:
- svn:46762da8-4eb7-0310-94e9-d918b60927c8/flup/trunk@2027
- Message:
Add cookieExpiration keyword to SessionService? /
SessionMiddleware? to adjust the session cookie's expiration.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r38 |
r39 |
|
| | 1 | 2006-08-02 Allan Saddi <asaddi@kalahari.flup.org> |
|---|
| | 2 | |
|---|
| | 3 | * Add cookieExpiration keyword to SessionService / |
|---|
| | 4 | SessionMiddleware to adjust the session cookie's expiration. |
|---|
| | 5 | Thanks to Blaise Laflamme for the suggestion. |
|---|
| | 6 | |
|---|
| 1 | 7 | 2006-06-27 Allan Saddi <asaddi@kalahari.flup.org> |
|---|
| 2 | 8 | |
|---|
| r19 |
r39 |
|
| 1 | | # Copyright (c) 2005 Allan Saddi <allan@saddi.com> |
|---|
| | 1 | # Copyright (c) 2005, 2006 Allan Saddi <allan@saddi.com> |
|---|
| 2 | 2 | # All rights reserved. |
|---|
| 3 | 3 | # |
|---|
| … | … | |
| 544 | 544 | def __init__(self, store, environ, |
|---|
| 545 | 545 | cookieName='_SID_', |
|---|
| | 546 | cookieExpiration=None, |
|---|
| 546 | 547 | fieldName='_SID_'): |
|---|
| 547 | 548 | self._store = store |
|---|
| 548 | 549 | self._cookieName = cookieName |
|---|
| | 550 | self._cookieExpiration = None |
|---|
| 549 | 551 | self._fieldName = fieldName |
|---|
| 550 | 552 | |
|---|
| … | … | |
| 622 | 624 | C[name] = sessId |
|---|
| 623 | 625 | C[name]['path'] = '/' |
|---|
| | 626 | if self._cookieExpiration is not None: |
|---|
| | 627 | C[name]['expires'] = self._cookieExpiration |
|---|
| 624 | 628 | if expireCookie: |
|---|
| 625 | 629 | # Expire cookie |
|---|