AnsweredAssumed Answered

How to get Current Session

Question asked by alihammad on Dec 23, 2009
Latest reply on Jan 5, 2010 by alihammad
How can I get the current Sessions of JSF, Spring, Alfresco and JCR sessions.

I am working with JCR and Foundation API .. you can login with new credentails all the time but how can you get the current session.

This is how we can get session with new credentials

Session session = getJCRRepository().login(new SimpleCredentials(LOGIN, PASSWORD.toCharArray()));

but I want something like this

Session session = getCurrentSession (….)

I hope the question is clear