1

I'm writing SharePoint webparts that are communicating with external system. Currently, on each request, a connection with system is made, user is authenticated and session is established - than custom code which interacts with external system can be executed.

Such solution is very slow. I would like to create connection with external system when user logs to SharePoint and destroy it when user logs out. Such thing could be achieved by session mechanism.

Is there any possibility to hook up to session start/session end events in SharePoint?

1

SharePoint does not have sesssion events. Those are part of the ASP.NET framework and are typically hooked in via global.asax.

However, what you describe is a somewhat risky plan. Lots of opportunities for abuse/hackers.

  • 1
    Why it is risky ? – user1252773 Sep 14 '12 at 14:54
0

as Paul stated it not recommended, a few pointers here:

http://www.sharepointdotnet.com/2012/05/causes-of-performance-issues-in.html

on that note you can do what you want just using webservices or WSRP :)

http://blogs.technet.com/b/josebda/archive/2007/04/05/integrating-sharepoint-with-other-portals-and-web-applications.aspx

hope this helps :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.