Hi Jelle,

What environment are you running in?  Is this a web application or
business-tier/standalone?

Thanks,

Les

On Tue, Jan 20, 2009 at 8:50 AM, jvreeker <[email protected]> wrote:

>
> I have some problems with expiration of a session.
> I created a login function.
>
> Subject currentUser = securityManager.getSubject();
> if (!currentUser.isAuthenticated())
> {
>        currentUser.login(usernamePasswordToken);
>
>        Session s = currentUser.getSession();
>
>        s.setTimeout( 600000);
>        s.setAttribute(CacheConstants.USEROBJECT, tmpData);
> }
> So timeout is 10 minutes.
> If I wait for more than 10 minutes and login again with the same user I
> always get ExpiredSessionException.
> How can I remove this session and login again and create a new Session.
>
> Thanks,
> Jelle
>
> --
> View this message in context:
> http://n2.nabble.com/Session-Expiration-tp2186574p2186574.html
> Sent from the JSecurity User mailing list archive at Nabble.com.
>
>

Reply via email to