Sessions problem

Hello, I have a problem:

in my app i need to log in 2 times after I start tomcat. The first time I get an “Session exipred” error, but when I log in again it seems to work fine.
I tried to disable the session persistant manager but id does not works.

How can avoid this problem?

Solved: I used to create log files into project folders. Tomcat notice new file and redeploy the application. So it isn’t a session problem.