A few years ago I had traveled to India, and had plans to leave the country for a week then return.
Big mistake.
I was advised to go to the Indian embassy in the destination country to get permission to come back. I did so, they took my passport and told me to come back the following day, hence delaying my travels within that country by a day. I returned to India ok. When i was leaving India I was asked why I had not checked in with the local police after returning. This was confusing to me but this said its a requirement for any foreigner leaving and returning within a 2 month period. As such, they wouldn't let me board the plane. I stayed in a hotel near the airport thru the weekend. On a Monday I went to the appropriate station, where there was a long line of foreigners in a similar predicament. When it was my turn, I was told i would need to show proof of a relative or someone I was staying with, so my uncle came and brought his passport and electric bill. Then I was told it would take some time, but he went in the back, met the director of that station and talked him up by mentioning people they knew in common and I got approved.
Then there were no seats on my plane available for the rest of the week, but I had to get back to work, so I bought a new ticket and went home.
I am Indian mind you, although born and raised in the US.
I will not be returning to India ever again.