Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi All,
In order to obtain a session,
final SlingRepository repos = sling.getService(SlingRepository.class); and session = repos.loginAdministrative(null); is used in the article https://helpx.adobe.com/experience-manager/using/using-ajax-requests-display-cq.html . But I read somewhere that loginAdministrative is now deprecated.
Can you please let me know, some of the other ways in which a session can be obtained.
Solved! Go to Solution.
Hi,
Right those are deprecated, Now you need to create service and map that service to user in OSGI
Take a look at step by step guide here @ http://www.wemblog.com/2014/08/how-to-use-sessions-and-resource.html
View solution in original post
Views
Likes
Replies