You have responded to a message that is 18 years ago and the posted hasn't been active for 7 years.
There are indeed several good articles on the web. When to take a magnesium supplement depends on why you want to take it because it is in a composite form. If you are taking it as a food supplement as magnesium lactate or magnesium chlorate, then they are usually taken with the meal.