[cdi-dev] [JBoss JIRA] (CDI-497) session scope doesn't follow session lifecycle
Romain Manni-Bucau (JIRA)
issues at jboss.org
Mon Jan 5 12:37:29 EST 2015
[ https://issues.jboss.org/browse/CDI-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029990#comment-13029990 ]
Romain Manni-Bucau commented on CDI-497:
----------------------------------------
Sure,
if invalidate is called during a request, session scope needs to be destroyed as well otherwise all usage of session scope beans later in the request is wrong and with corrupted data.
> session scope doesn't follow session lifecycle
> ----------------------------------------------
>
> Key: CDI-497
> URL: https://issues.jboss.org/browse/CDI-497
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Reporter: Romain Manni-Bucau
>
> ATM session destroyed event is bound to the request. this means a logout will not be able to access the right session when destroyed since most of the time logout = session destruction and then you can recreate a session (login case).
> Would be great to align CDI scopes - and then events - to the real lifecycle of the underlying observed event.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the cdi-dev
mailing list