473,587 Members | 2,516 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 1225
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********@hot mail.comwrote in message
news:%2******** *******@TK2MSFT NGP02.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_GlobalResou rces.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******** ******@TK2MSFTN GP04.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********@hot mail.comwrote in message
news:%2******** *******@TK2MSFT NGP02.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********@hot mail.comwrote in message
news:%2******** *******@TK2MSFT NGP02.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
7507
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 including the php.net manual. In the manual it said to include something like the following:
5
8526
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 not allowed to save the value in a database or to save it into a file. It must be a kind of global server variable, changeable by every session. tia
1
1394
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 "gObj" to have access based on the user's id. Is this possible without creating multiple gObj's? Code would be something like:
11
4935
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., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come...
1
7044
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 committing one or more transactions on that table. I can find out which session is locking that specific table and I can detect the locking of...
1
1691
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 neglect/fail to logout properly? Clearly multiple logons to the same user id are permitted. Do abandoned sessions stack up chewing up system resources or...
3
1673
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 company, we're developing a web product based on ASP.NET 2.0, in conjunction with Oracle database over ADO.NET and external COM objects
9
2312
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 postback, and there will be nothing in the Session object. The session is getting restarted with the same session ID. Since we haven't been able...
10
2654
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 time out which is about little more than 8 hours, the page expires in less than 2 hours. I am confused here how to avoid this timeout problem. I...
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1192
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.