473,513 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gurus Only - How to avoid abandoned sessions on language changes

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
Jul 5 '06 #1
3 1222
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

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Amil Hanish" <am********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>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

Jul 5 '06 #2
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
netwrote in message news:Oe**************@TK2MSFTNGP04.phx.gbl...
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

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Amil Hanish" <am********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>>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


Jul 5 '06 #3
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

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Amil Hanish" <am********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>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

Jul 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7486
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
5
8496
by: Ikke | last post by:
I have to share a variable between browser sessions. One session for example changes the variable, the other sessions must see the changes (get the new value instead of the original value) it's...
1
1391
by: Alex | last post by:
I'm sure that the following is possible, I just need a little help please. I have a object which I declare as a application object "gObj". I need to use "gObj" with all sessions. I need...
11
4894
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
1
7022
by: Doron | last post by:
Hi, Is there any way to associate SQL text from the V$%SQL% views with sessions. A piece of code in our application locks up a critical table about once a month. I suspect that the code is not...
1
1681
by: Thomas Bartkus | last post by:
Can anyone point to documentation, or pass along some insight on how MySQL handles dropped connections and abandoned queries? How does MySQL cope with people/processes that log on and then...
3
1669
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our...
9
2310
by: Big Daddy | last post by:
We have a problem where the session is getting abandoned for no apparent reason. It's not timing out. We save some important data in the Session object. The user will click on something, causing a...
10
2648
by: Atul Shukla | last post by:
Hi, How can I avoid application timeout? Generally a web application time out is 20 minutes, however, we can define this timeout in web.config to any number of minutes. After giving 500 minutes of...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7162
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7527
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.