Just to confirm you know to stop and park in a safe spot as quickly as possible when this happens, put the gear into park or neutral and let the engine idle until the light turns off. If you dont you can destroy your transmission which is $$$ to repair.

When you let it idle does the temp light turn off?

If so, when was the last time you replaced your tran fluid and filter?