I am creating a webapp on facebook that allows users to provide login details for a third party website and make requests via my app to that service. (i.e. they have an account with my app, and an account with the 3rd party website.)
There is no API for this third party website, so I am using URLlib to perform the logins. Furthermore, all interactions with this 3rd party app are via a Celery Queue, so there is no link between the frontend of my app, and the actual request from my app to the 3rd party
I am trying to come up with the best way to deal with managing the cookies returned by the third party website so that I don't have to log the user in at every action.
Would it be madness to create a table that maps users to cookies and serialise the cookies into the database?