remove unused variable
don't store private public-share-key in session
we no longer need to keep the session open for encryption
replace \OC:: with \OC::->getSession()
Merge pull request #12410 from owncloud/no_session_for_public_share_key

don't store private public-share-key in session