Changeset 1190
- Timestamp:
- 15/06/06 11:28:33 (15 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/NDG/SecurityCGI.py
r1129 r1190 277 277 278 278 # Check for cookie in environment 279 if 'HTTP_COOKIE' in os.environ:279 if sessCookie is None and 'HTTP_COOKIE' in os.environ: 280 280 281 281 # Get session ID from existing cookie 282 282 sessCookie = SimpleCookie(os.environ['HTTP_COOKIE']) 283 283 284 if sessCookie: 285 # Cookie is set - check for NDG cookie 286 try: 287 UserSession.isValidSecurityCookie(sessCookie, raiseExcep=True) 284 # Check for NDG cookie 285 if sessCookie and UserSession.isValidSecurityCookie(sessCookie): 288 286 289 except UserSessionError, e:290 raise SecurityCGIError, \291 'Checking existing session cookie: %s' % e292 293 287 # Return cookie to requestor 294 288 self.returnCreds(sessCookie, returnURI, **returnCredsKwArgs)
Note: See TracChangeset
for help on using the changeset viewer.