| Line 61... |
Line 61... |
| 61 |
// If the requested session is inactive, do the following:
|
61 |
// If the requested session is inactive, do the following:
|
| 62 |
// 1. Retrieve the user for the requested session from the user cookie
|
62 |
// 1. Retrieve the user for the requested session from the user cookie
|
| 63 |
// 2. Add the retrieved user to the newly created session above.
|
63 |
// 2. Add the retrieved user to the newly created session above.
|
| 64 |
// 3. Update the uid cookie to ensure that a valid user is set in the session
|
64 |
// 3. Update the uid cookie to ensure that a valid user is set in the session
|
| 65 |
userInfo = createAndGetSessionFromUIDCookie(session);
|
65 |
userInfo = createAndGetSessionFromUIDCookie(session);
|
| 66 |
session.setAttribute("userinfo", userInfo);
|
66 |
session.setAttribute(USER_INFO, userInfo);
|
| 67 |
createUserCookie(userInfo.getUserId(), true);
|
67 |
createUserCookie(userInfo.getUserId(), true);
|
| 68 |
}
|
68 |
}
|
| 69 |
if (action instanceof UserAware) {
|
69 |
if (action instanceof UserAware) {
|
| 70 |
UserAware sessionAction = (UserAware) action;
|
70 |
UserAware sessionAction = (UserAware) action;
|
| 71 |
sessionAction.setSession(session);
|
71 |
sessionAction.setSession(session);
|