Disable input in share.php and session control on up.php