-
Notifications
You must be signed in to change notification settings - Fork 545
Conversation
Missing: * Error checking * Cleanup of cookiefiles * Session expiry * Ability to toggle cookie support (should disable by default)
So this bit of code tells curl to use the
|
Yup! |
@joshdick I just put this togeather really quickly, is this code correct to toggle cookies? (the variable would be in the config at the top)
|
That could would make sense in the case where cookies were switched from enabled to disabled, but if cookies were never enabled, there'd be no reason to |
@joshdick
|
That could work. When I had opened this PR I had thought of a few ways to clean up cookies automatically:
I hadn't considered having an explicit URL to do the cleanup, but it's certainly the simplest! |
@joshdick It is deffinilty easier, I looked back at it and realized that I broke it by putting
Also as to cleaning the cookies with cron this may be of interest: |
My first idea was just to add prefixes to all cookies names when setting them in users browser and stripping them when sending back to remote server. This requires using "path" attributes to control which cookies are sent to the server and thus setting up ModRewrite or whatever to have a clean construction like: webproxydomain.com/arbitrary_path/somesite.com so you can identify remote domain by path. |
Very quick and dirty cookie support. NOT production ready (yet).
Use this cookie support code at your own (security/disk space/etc) risk.
Missing: