Share cookies between two installations

I have a WordPress installation in the folder below the main installation.
How do I share the cookies between them?