Here we are going to explain what is section 22 in CrPC (Code of Criminal Procedure).
Local jurisdiction of Executive Magistrates:
1. Subject to the control of the State Government, the District Magistrate may, from time to time, define the local limits of the areas within which the Executive Magistrates may exercise all or any of the powers with which they may be invested under this Code.
2. Except as otherwise
provided by such definition, the jurisdiction and powers of every such
Magistrate shall extend throughout the district.