hi, i have a class which does not extend Component class.how can i get loginned user's name and password in this class.
Regards.
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
hi, thank you for your reply, my class does not extend Component because it extends another class that does not extend Component.
i found the solution:
IDfSessionManager sm=SessionManagerHttpBinding.getSessionManager();
IDfSession _session = sm.getSession(docbase);
Whats your reason for not extending component? Are you building custom web app that is NOT WDK based? If so, you have to manage your own sessions. This is why using WDK is much more convenient - it manages the sessions for you.
Be careful with this as I have used this in the past and had issues with session leaking. This was in the 5.3 days... but maybe is still problematic.
Just my 2 cents.