I had a similar problem on my desktop computer. I would turn it on, it would show my desktop image for a few seconds, then it would automatically log me off. After reinstalling Windows XP, it worked fine again, so I'd definitely try reinstalling your OS.