Yeah that's right 0777 and yes probably the root cache used, you can check in

Admin/Configuration/Sessions

Session Directory = /home/#######/public_html/cache

This folder must be 0777 permission