Keep multiple sessions
Posted: Fri Oct 18, 2019 4:25 pm
Hi,
I'm trying to save multiple user sessions in my app. What i want is , the user can fast switch between his logins in a website.
For achieve the results, i'm saving the Cookies files when he logs in the website. When he wants to log with another user, he will logout and login, and then i can save the cookies of this new user with another name. When he wants to switch back to the first login, i recover the first saved cookies file.
But it's not working ; it only works if i save the entire cookies dir (which is about 450 MB), instead of only the Cookies file.
Is there a way to know exactly which files i need to save in order to recover the entire session ?
Thanks
I'm trying to save multiple user sessions in my app. What i want is , the user can fast switch between his logins in a website.
For achieve the results, i'm saving the Cookies files when he logs in the website. When he wants to log with another user, he will logout and login, and then i can save the cookies of this new user with another name. When he wants to switch back to the first login, i recover the first saved cookies file.
But it's not working ; it only works if i save the entire cookies dir (which is about 450 MB), instead of only the Cookies file.
Is there a way to know exactly which files i need to save in order to recover the entire session ?
Thanks