i try to call a page header tag according a value but create a double header, in my IndexPage i put this code in body routine.
body  Routine
  ! Start of "Top of Routine"
  ! [Priority 5000]
     if p_web.GetSessionLoggedIn() = 0  
        
        !s_web._SitesQueue.Defaults.PageHeaderTag = '<!-- Net:PageHeaderTag -->'
  ! End of "Top of Routine"
  packet.append(p_web.AsciiToUTF(|
    '<<!-- Net:PageHeaderTag --><13,10>'&|
    '<<!-- Net:F:xmain --><13,10>'&|
    '<<!-- Net:PageFooterTag --><13,10>'&|
    '',net:OnlyIfUTF,net:StoreAsAscii))
  ! Start of "Bottom of Routine"
  ! [Priority 5000]
     ELSE
      packet.append(p_web.AsciiToUTF(|   
     '<<!-- Net:PageHeader1Tag --><13,10>'&|         
      '<<!-- Net:F:xmain --><13,10>'&|
      '<<!-- Net:PageFooterTag --><13,10>'&|
      '',net:OnlyIfUTF,net:StoreAsAscii))
  END