session in sharepoint RRS feed

  • Question

  • Hi all

    This is my requirement.

    the user has logged in sharepoint site,  after 20 Secs the session has been expired and display the "please log in" message.

    By using form based authentication in site.

    Please respond ASAP


    Thursday, July 5, 2012 3:04 AM


  • 1st Step:

    Enable sessionstate in your web app , web config.

    2nd step: While doing authentication, if you create user session to store few values, and while creating session, set expiry time for 20 mins.

    3rd step:In your code, if there is no session available foruser, redirect user for authentication login form.

    Ashish Ranjan (Please click "Marked As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you)

    Thursday, July 5, 2012 4:20 AM