[jira] [Commented] (SHIRO-616) Two different sessions are created

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SHIRO-616) Two different sessions are created

JIRA jira@apache.org

    [ 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)
Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Commented] (SHIRO-616) Two different sessions are created

Brian Demers
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) <[hidden email]> 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)
>