You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "thiagesh (JIRA)" <ji...@apache.org> on 2017/03/19 21:03:41 UTC
[jira] [Commented] (SHIRO-616) Two different sessions are created
[ https://issues.apache.org/jira/browse/SHIRO-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931962#comment-15931962 ]
thiagesh commented on SHIRO-616:
--------------------------------
On further debugging using Thread.currentThread().getId(), i found that im getting different sessionID's for different threads!
> Two different sessions are created
> ----------------------------------
>
> Key: SHIRO-616
> URL: https://issues.apache.org/jira/browse/SHIRO-616
> Project: Shiro
> Issue Type: Bug
> Reporter: thiagesh
>
> After first login i get a session id.
> During the second login, i get a different session id and isAuthenticated returns false, as a result of which i call login for the second time.
> After that i get both the session ID's alternatively for subsequent requests.
> FYI I use shiro on top of dropwizard.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Re: [jira] [Commented] (SHIRO-616) Two different sessions are created
Posted by Brian Demers <br...@gmail.com>.
How are you configuring the Servlet environment via Dropwizard?
Are you doing something similar to this:
https://github.com/stormpath/stormpath-shiro/blob/master/examples/dropwizard-angularjs/src/main/java/com/stormpath/shiro/samples/dropwizard/bundle/shiro/StormpathShiroBundle.java#L37-L44
On Sun, Mar 19, 2017 at 5:03 PM, thiagesh (JIRA) <ji...@apache.org> wrote:
>
> [ https://issues.apache.org/jira/browse/SHIRO-616?page=
> com.atlassian.jira.plugin.system.issuetabpanels:comment-
> tabpanel&focusedCommentId=15931962#comment-15931962 ]
>
> thiagesh commented on SHIRO-616:
> --------------------------------
>
> On further debugging using Thread.currentThread().getId(), i found that
> im getting different sessionID's for different threads!
>
> > Two different sessions are created
> > ----------------------------------
> >
> > Key: SHIRO-616
> > URL: https://issues.apache.org/jira/browse/SHIRO-616
> > Project: Shiro
> > Issue Type: Bug
> > Reporter: thiagesh
> >
> > After first login i get a session id.
> > During the second login, i get a different session id and
> isAuthenticated returns false, as a result of which i call login for the
> second time.
> > After that i get both the session ID's alternatively for subsequent
> requests.
> > FYI I use shiro on top of dropwizard.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.15#6346)
>