Gurus Only - How to avoid abandoned sessions on language changes

A

Amil Hanish

I have a localized language website. When I make a simple text change to a
language, all user sessions are abandoned because the resource file is
recompiled.

Any way to avoid this and allow new changes without sessions being killed?

Amil
 
K

Karl Seguin [MVP]

I'm not really sure why this is a guru's only topic....

Does modifying a satellite assembly cause the appdomain to recycle? For some
reason I thought it didn't, though I can't find anything for sure. If you
haven't tried it out, you might want to...You can place all resources in
satellite assemblies.

You can also move your sessions out of process. This will make your sessions
survive any recycle. Of course, I only recommend that after you've done
some testing. (a) you'll see a slight performance hit and (b) everything
needs to be serializable, which might not be possible. On the flip side,
your site will scale out a lot better. Any performance-sensitive site
should be developement with scalability in mind.

Finally, you can use an alternative to the built-in localization stuff:
http://openmymind.net/index.aspx?documentId=3
http://openmymind.net/index.aspx?documentId=4
http://openmymind.net/index.aspx?documentId=52

Karl
 
A

Amil Hanish

I have tested the satellite assembly; it does recycle the sessions. I
published my site and got the App_GlobalResources.dll file. Then I modified
a localized string and recopied just the dll, but the session was recycled.

Amil

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:[email protected]...
 
R

Robbe Morris [C# MVP]

Yes, you will need to step out of process to manage
state if you want to avoid this.

This is going to happen regularly anyway when
the app recycles with or without updating
your assemblies.

If not loosing session regularly is a priority,
you need to look at StateServer or possibly
a third party product like ScaleOut StateServer
if you are working in a web farm.

http://www.eggheadcafe.com/articles/scaleout_server.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top