You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by manitas <ma...@gmail.com> on 2012/06/02 15:25:57 UTC

Re: Native session and custom sessionDao with guice

Any idea ?

Is there an example somewhere using native session with shiro-guice ?

Thanks in advance.

--
View this message in context: http://shiro-user.582556.n2.nabble.com/Native-session-and-custom-sessionDao-with-guice-tp7575633p7577459.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Native session and custom sessionDao with guice

Posted by manitas <ma...@gmail.com>.
Perfect ! Thanks a lot !

--
View this message in context: http://shiro-user.582556.n2.nabble.com/Native-session-and-custom-sessionDao-with-guice-tp7575633p7577468.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Native session and custom sessionDao with guice

Posted by Jared Bunting <ja...@peachjean.com>.
Sorry about the delayed response.  We were shipping last week at my day 
job.

I think the key here is that, in order for the TypeListeners to see a 
type, it has to be explicitly bound.  So, adding 
"bind(DefaultWebSessionManager.class);" somewhere in your module should 
solve both the session timeout and cookie issue.

In fact, I have just committed some sample guice code.  The class 
applicable to your situation can be viewed here: 
http://svn.apache.org/viewvc/shiro/trunk/samples/guice/src/main/java/org/apache/shiro/samples/guice/SampleShiroNativeSessionsServletModule.java

On Sat 02 Jun 2012 08:25:57 AM CDT, manitas wrote:
> Any idea ?
>
> Is there an example somewhere using native session with shiro-guice ?
>
> Thanks in advance.
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Native-session-and-custom-sessionDao-with-guice-tp7575633p7577459.html
> Sent from the Shiro User mailing list archive at Nabble.com.