locked
Handling Mulitple Browser Session RRS feed

  • Question

  • We are using sync framework to enable offline capability for a Silverlight based business application. Following scenarios needs to be supported:

    1. User accessing the same application using multiple browser instances from a the same machine (e.g IE, Firefox, and Safari)
    2. User accessing the same application using multiple browser tabs from a the same machine

    For the above scenarios, user uses same credentials (user name, and password) to gain access to the application.

    Questions:

    1. How would the data update be handled across browser sessions? Does sync framework maintain data separately per browsersession in isolated storage?
    2. Is it possible to isolate the data separately in isolated storage per browser session? If so how?
    3. What’s the recommendation from Microsoft to handle the above scenario?

    Appreciate your feedback on the above.

    Tuesday, April 5, 2011 2:44 PM

Answers

  • Hi arasheed,

    1. How would the data update be handled across browser sessions? Does sync framework maintain data separately per browsersession in isolated storage?

    [Ganeshan] The implementation that we provide for isolated storage only maintains 1 copy of persistent data and if I remember correctly only allows one application to access it at any point of time. You should get an error if you try to instantiate the same context from multiple tabs or browser windows.

    1. Is it possible to isolate the data separately in isolated storage per browser session? If so how?

    [Ganeshan] Yes, its possible but you have to implement a custom storage handler to support this by extending the OfflineSyncProvider implementation. Check out the Windows Mobile 6.5 sample for an example of how this can be implemented.

    1. What’s the recommendation from Microsoft to handle the above scenario?

    [Ganeshan] We did not want to support this scenario because it led to additional paths for testing and I dont see a great many applications needing to have separate offline storages on the same machine. Though you can implement such a thing using the interfaces we expose.


    SDE, Sync Framework - http://www.giyer.com
    Wednesday, April 6, 2011 4:44 PM