Gurus Only - How to avoid abandoned sessions on language changes

  • Thread starter Thread starter Amil Hanish
  • Start date Start date
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
 
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
 
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]...
 
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
 
Back
Top