Servlet Session creation after committing it.

I have a servlet whose session expires after 10 minutes. Now if the user hits the browser after session expires i want to do certain processing and then recreate a new session. But i get

"java.lang.IllegalStateException: Cannot create a session after the response has been committed"

Any advice on how to solve this problem. Also any suggestions on what else i could do with a request which comes after session expiration?

Message was edited by:

sonny1000

[488 byte] By [sonny1000a] at [2007-11-26 14:17:36]
# 1
Sounds to me like you don't need a session timeout at all.
sabre150a at 2007-7-8 2:08:06 > top of Java-index,Java Essentials,New To Java...