The main thing is be cool, if you don't know where your at and you don't think you can find your way back by dark "STOP" get your self ready to spend the night, you won't die, you might be uncomfortable but if you get ready early enough it'll be OK.
Find some kind of shelter, that could be a brush pile or lean-to or anything ells.
wood, wood, & more wood, get enough to last all night, you don't want to run out before it gets light, make a bed next to the fire or just stay up all night.
The next day back track your self, look for boot prints and scuff marks made buy you.
Again the most important thing is be cool, keep your head.