SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Session Timeout Warning

Last post 07-09-2009, 4:11 PM by ste_brough. 5 replies.
Sort Posts: Previous Next
  •  07-03-2009, 8:56 AM 19663

    Session Timeout Warning

    I am trying to develop a session timeout warning for users on our Sharepoint platform. This platform has 2 load-balanced front-end web servers, and uses ISA Server, linked to Active Directory, and using NTLM authentication to authenticate users. When our users login, they use the ISA Server HTML forms to select the public option (10 mins) or private option (60 mins). Is it possible to develop some code which determines whether the user has signed in as public or private, and then gives them some kind of pop up warning (maybe Ajax?) that lets them know 2 mins. before timing out, that they need to 'click here' to continue their session.  Not sure how to enable the front-end web servers  to access this "session" information.  Cookie files are created on the ISA server when a user logs in (3 for private, 2 for public), but now sure how to communicate between the various systems.
  •  07-05-2009, 10:33 PM 19682 in reply to 19663

    Re: Session Timeout Warning

    Store the login info in session state and then add a user control in your sharepoint site using AdditionalPageHead delegate. This user control could contain the date and time logged in from the session variable and just use a bit of simple javascript to display the warning.
  •  07-06-2009, 10:24 AM 19685 in reply to 19682

    Re: Session Timeout Warning

    Just to clarify, to store the login info. in session state, I would use a Shared Services Provider, and then I could interrogate the relevant database?  

    Also, I haven't created a user control before in sharepoint so any tips appreciated. Where would the javascript code be located?

    Thanks

      

  •  07-06-2009, 12:54 PM 19686 in reply to 19685

    Re: Session Timeout Warning

    You would have to create a User Control within Visual Studio or an equivalent IDE. You could then create a feature to deploy the user control using AdditionalPageHead to get the control into all pages. The javascript would be on the user contol itself and you could spit the session variable out into the client side variable.
  •  07-09-2009, 3:39 PM 19759 in reply to 19686

    Re: Session Timeout Warning

    So, are you saying that the session information would come from session state and not from the ISA server at all - so there would be no way of distinguishing if they had logged in publicly or privately ?

    Thanks.

  •  07-09-2009, 4:11 PM 19760 in reply to 19759

    Re: Session Timeout Warning

    Hi Julie,

    As long as the variable is available to the server side code it will work. To be honest I have no experience with ISA server so cannot advise.

    If you could get ISA server to pass the login expiry date through the querystring it might work. The user control could check the server variable and if the value is nothing it could obtain from the querystring and store it as a session variable.

    Steve

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems