Tim Forbes
posted this on October 25, 2011 05:46 pm
If your site has a password-protected area and user accounts are connected to a Contact record in your Salesforce instance, you have the ability to filter results of a Salesforce Search form based on a logged in user's Contact record or Account record.
This option for filtering records of a given object can apply to 1) the Contacts object itself; 2) the Accounts object itself; or 3) any object that is related to the Contact or Account object.
To filter Salesforce Search results by Contact ID of the logged in user:

To filter Salesforce Search results by Account ID of the logged in user: