Ajax polling chat : keep session on website update

Hi Experts,

My website has a chat section which polls every 2 seconds to refresh the messages.
My users are logged in to access a particular chat and all works fine.

When I update my website (ie my webapplication), I don't want my chatters to be disconnected because of this update.
How can I make the update transparent for my users.

Thanks in advance for your help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

i assume you are using session and that is the reason why your user gets disconnected when you update the site .. i also assume when you say update the site, you mean update some page which is not part of the chat session .. anyway, to handle this situation, you will have to write your own custom session handling which might not be worth the effort .. so make changes when there are no users logged in ..

nouloukAuthor Commented:
Thanks Rejo,

You mean to store session in SQL Server for example instead of Application memory.
OK, I can do this easily.
But the problem is that the chat section is a part of my whole website (unique webapplication) and not a stand alone webapplication included in my website.
And another big problem is that I don't want to close all chat sessions and unlog all users to make an update.

I think there is a way to update a website when users are logged in and to make it transparent for them.
you can  update parts of the page if you have deployed your website as multiple assemblies and not a single assembly .. so whenever you have a change in your code that is not part of the chat screens, you just have to copy the respective dlls to the bin folder ..

i did not mean SQL server, because again outproc sessions also abandones session whenever the application restarts .. normally the application restarts when the web.config file is re-written or IIS restarts etc ..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.