There's a field in the namespace object called "File Control Lifetime" that controls this. If the file connection goes idle for this length of time then it is closed, and a password is needed the next time the connection is opened. I'm not sure what the default is.