Using Update Panel..does session remain or do you need a full postback?

Last post 11-05-2008 1:09 AM by Lance Zhang - MSFT. 1 replies.

Sort Posts:

  • Using Update Panel..does session remain or do you need a full postback?

    11-03-2008, 9:47 AM
    • Member
      point Member
    • josclark
    • Member since 11-03-2008, 5:18 AM
    • Posts 6

    I am using several update panels on 1 page. My question is if I am updating, editing, deleting with async postbacks, does the user's session get updated with aysnc postbacks or do I need a full postback to update the session variable? I have the session set to 60 minutes in the web.config file and it seems like their session is being lost rather quickly. Any suggestions?

     Thanks for your help,

     

    Filed under: , , ,
  • Re: Using Update Panel..does session remain or do you need a full postback?

    11-05-2008, 1:09 AM
    Answer
    HI josclark
     
    In the following link, Mike McAllister post a good explain about the UpdatePanel and Session:
     
    http://bytes.com/forum/thread654213.html
     
    The updatepanel uses XMLHTTPRequest to get the html to display in the panel. XMLHTTPRequest will send the session cookie, but on response it does not read and update the browser's session cookie, so after 20 mins the session cookie times out (in the browser) and is no longer sent to
    the server.

     
    you can switch to cookieless sessions or update the browser cookie using a server request via an img or iframe.
    -- bruce (sqlwork.com)

     
    Thanks.
     

     

    Lance Zhang
Page 1 of 1 (2 items)