i am getting maximum sessions exceeded exception when i use my webapplication for an hour continously.. what i am doing is i am trying to insert huge data into the databse.. for this i need to use sessions.. it will be problem if it gives the exception in the middle of the exection period.. so please give me some suggestions to avoid that error msg..
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
[LIST] If session is not removed after its usuage. [LIST] If the session timeout is more and you are using alot of session objects without cleaning the unwanted sessions. [LIST] Do avoid usage of session at the max. as it would slow the process of your application. [LIST] Dont store large number of data in session, if its stored do remove it after its usage.
I would recommend you to store data in transaction instead of Session for your scenario. So that at the end of the transaction, (i.e., after insert and commit) the data will be automatically destroyed.
Still, we will be in a better position to help you if you can give more details as how you have implemented in your code.