I need to set the showheader property in visualforce page to true or false based on user profile. For all internal salesforce users the showheader property should be set to true and for all external/portal users the showheader should be set to false.
<apex:page standardController="Contact" showHeader="true">
<apex:detail relatedList="true" inlineedit="TRUE" />
</apex:page>