Database in app

I have written several web apps and always had my database connection in the session. I am now working on a web app that includes a data logger that need to run all the time, not just when there is an active session. I believe that will require my SQLite connection to be in the app. Everything I have read indicates the connection should be in the session so my question now is will I run into problems if I use the same connection in the app and session?

Why? Just have the data logger component of the app make its own connection to the database.

Good idea, thanks.

Remember that each thread should have its own connection to the database. For a web app this means: application, each session, each specialURL, and any user created threads that you might be using that access the database.