<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get Current Session in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220422#M173552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I get the current Sessions of JSF, Spring, Alfresco and JCR sessions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how we can get session with new credentials &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Session session = getJCRRepository().login(new SimpleCredentials(LOGIN, PASSWORD.toCharArray()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I want something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Session session = getCurrentSession (….)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope the question is clear&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2009 08:04:38 GMT</pubDate>
    <dc:creator>alihammad</dc:creator>
    <dc:date>2009-12-23T08:04:38Z</dc:date>
    <item>
      <title>How to get Current Session</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220422#M173552</link>
      <description>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().lo</description>
      <pubDate>Wed, 23 Dec 2009 08:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220422#M173552</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2009-12-23T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Session</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220423#M173553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;any feedback??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 10:31:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220423#M173553</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2009-12-24T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Session</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220424#M173554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assuming you are using Java, one way to do it would be to stick the session in a thread local variable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 14:40:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220424#M173554</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-12-24T14:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Session</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220425#M173555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you plz elaborate that a little bit.thank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2009 06:24:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220425#M173555</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2009-12-25T06:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Session</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220426#M173556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;any more suggestions??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 11:11:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-session/m-p/220426#M173556</guid>
      <dc:creator>alihammad</dc:creator>
      <dc:date>2010-01-05T11:11:36Z</dc:date>
    </item>
  </channel>
</rss>

