Hi @shenglong li,
Unfortunately, modern browsers like Microsoft Edge, Google Chrome and Firefox are simply not designed to permit more than one session to be using the same browser profile. This feature requires you to specify a unique profile for each user.
As I have shared in the previous post, the problem is exactly that the two sessions do not share the desktop although they are logged in with the same credentials. The desktop does not mean the "Desktop" folder but the logical entity in windows where the applications run. Therefore, the instances running in both sessions can't see each other and the first one locks the profile for exclusive use which is critical to ensure no profile corruption can occur.
The best workaround (or we can say the expected configuration) is to make sure every logged-in user gets their own profile. You can achieve that by --user-data-dir
flag. For example:
msedge.exe --user-data-dir=%LOCALAPPDATA%\Microsoft\Edge\%CLIENTNAME%
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Shijie Li