Answer the question
In order to leave comments, you need to log in
How to work in the browser on the same PC through different users using the same cookies?
Good day, dear reader. Faced the following task: there is a machine on Windows Server 2019, there are 20 users who can potentially surf simultaneously via RDP, but you need to configure a chromium-like browser (in extreme cases, a mozilla-like one) so that all users can surf a specific resource at the same time using the same cookies, which will be updated periodically for everyone.
At the moment, it was possible to implement this on IE, but this solution is not entirely satisfactory.
I tried to set up the browser on user #1, but it does not allow running simultaneously from user #2 "On behalf of user #1". I tried the portable version - the same situation, they are just hindered by the fact of multi-launch from one user.
I tried to make the portable versions (in each user) have the same profile files for all - I could not implement this, Google also did not help.
I tried to do something similar by setting Portable Firefox to be launched by more than one copy, it also did not work.
There is an idea to somehow organize the constant synchronization of files within one PC - so that files are synchronized between profiles. Haven't tried it yet, but I'm afraid it won't happen fast enough.
And I also tried to prescribe the paths of profiles from each user in the OS itself, hoping that it would suddenly turn out to achieve synchronization - it didn’t work out, maybe I didn’t figure it out completely, but I don’t know how else to try it.
Dear reader, tell me please, how would you solve such a problem? Maybe there are even some non-obvious or even obvious solutions that I don't see?
Please help me with this rather important task for me. Thanks to.
Answer the question
In order to leave comments, you need to log in
This is easily done through a browser extension, the background.js background process has full access to cookies and through it you can write the same cookies for all users, you just need to write a script that would poll your server for cookies and then automatically stick them if the cookies have changed .
PS I can't give an example, then I'll have to write this same script for you, which I'm not ready to do for free. I'm just giving you a hint where to dig.
Difficult, in firefox cookies are stored in the sqlite database, you will have to add them to all users there.
It's easier to run the browser on behalf of one specific user using a BAT file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question