Lines 550-558
Link Here
|
550 |
// If session tracking via cookies has been disabled for the current |
550 |
// If session tracking via cookies has been disabled for the current |
551 |
// context, don't go looking for a session ID in a cookie as a cookie |
551 |
// context, don't go looking for a session ID in a cookie as a cookie |
552 |
// from a parent context with a session ID may be present which would |
552 |
// from a parent context with a session ID may be present which would |
553 |
// overwrite the valid session ID encoded in the URL |
553 |
// overwrite the valid session ID encoded in the URL. If the web application |
554 |
if (!((Context)request.getMappingData().context).getCookies()) |
554 |
// is automatic deploy by tomcat and it has not context element, default |
555 |
return; |
555 |
// get session from cookies. |
|
|
556 |
Context reqContext = (Context)request.getMappingData().context; |
557 |
if (reqContext != null) { |
558 |
if (!reqContext.getCookies()) |
559 |
return; |
560 |
} |
556 |
|
561 |
|
557 |
// Parse session id from cookies |
562 |
// Parse session id from cookies |
558 |
Cookies serverCookies = req.getCookies(); |
563 |
Cookies serverCookies = req.getCookies(); |