locked
Restrict User to not to open same link on browser. RRS feed

  • Question

  • User143067745 posted

    Hi.

    I am facing a serious problem. I have an application having an Monthly Payment Form, this form has two parts. If user fills first part some values are generated for second part and remaining part is filld by the user. Some of generated values are stored in session also.

     User is opening this form in multiple tab of a browser,  and if he is working concurrently on both the tab my session values are being overwritten. For example if he fills first part  in one tab and then swith to second tab and fills first part of second tab(values in session will be overritten of first tab) then  he saves to first tab's form, I am gettingt wrong values.

    How to prevent user to open same link in multiple tab in same browser? 

    Thanks.

    Thursday, December 27, 2012 6:29 AM

Answers

  • User35525891 posted

    Hi,

      I think we cannot stop user from opening a page in multiple tabs. But, we can  do something like this. Create a GUID and store it in session and viewstate when page requested for the first time. Then for consequent post operation, check whether this session and viewstate values are same or not. If it not same, show user your custom error message.

    or try this below link.

    https://sites.google.com/site/sarittechworld/track-client-windows

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 28, 2012 1:01 AM

All replies

  • User1497757439 posted

    u can disable tab, once user completed entry in particular tab.

    Thursday, December 27, 2012 6:38 AM
  • User35525891 posted

    Hi,

      I think we cannot stop user from opening a page in multiple tabs. But, we can  do something like this. Create a GUID and store it in session and viewstate when page requested for the first time. Then for consequent post operation, check whether this session and viewstate values are same or not. If it not same, show user your custom error message.

    or try this below link.

    https://sites.google.com/site/sarittechworld/track-client-windows

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 28, 2012 1:01 AM