Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should keep session content rather than session object after programmatic login #47

Closed
glassfishrobot opened this issue Oct 5, 2012 · 5 comments

Comments

@glassfishrobot
Copy link

The following issue is raised by Jan Bartel janb@intalio.com.
See email discussion in users@servlet-spec.java.net .

In p.141 of 13.10 "Login and Logout" of Servlet 3.0 spec, it has:
"If a developer creates a session while a user is not authenticated, and the container then authenticates the user, the session visible to developer code after login must be the same session object that was created prior to login occurring so that there is no loss of session information."

The session content rather than the session object must be kept.
So, it is a bug in the spec.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @shingwaichan

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@shingwaichan said:
I have a second thought on the issue.
Consider the following:
session.setAttribute("a", A);
where A is an object that has a reference to session.
In this case, it would be better to keep the same object instance.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Marked as works as designed on Tuesday, October 9th 2012, 10:16:05 pm

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA SERVLET_SPEC-47

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant