locked
Handling Session between multiple tabs in ASP.NET RRS feed

  • Question

  • Hi, I would like to ask how to handle session between multiple tabs in ASP.NET.

    Problem Faced: User A, using Tab A, and duplicate Tab A, lets name it as Tab B.  Hence, now there is Tab A and Tab B.

    When User A use Tab A to modify records, and uses Tab B to delete records, it will cause concurrency error, as Session issue.

    Any ways to overcome this issue?

    Regards,

    Arthur.

    Wednesday, June 8, 2016 8:35 AM

Answers

  • Hi icezkiwi

    Thanks for posting here.

    For your case, I suggest to refer to Cookieless Session. Set SessionStateSection::Cookieless Property to indicate whether cookies are used to identify client sessions. There are two ways that session state can store the unique ID that associates the client with a server session: by storing an HTTP cookie on the client or by encoding the session ID in the URL. Storing the session ID in the cookie is more secure.

    For a code example, please refer to this link.

    http://www.codeproject.com/Tips/627029/Cookieless-Session-in-ASP-NET

    Best Regards,

    Sera Yu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Friday, June 10, 2016 7:04 AM