Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2006

Tip: Looking for answers? Try searching our database.

Losing session variables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Inga2005 - 18 Mar 2006 23:01 GMT
Hi!
I have developed a web application which is using localization files.
Once the user selects a different language then the original one the
session variables are lost after 7 seconds. Otherwise the session
variables are kept for 20 min as set in the web.config file. The
structure of my files are like the following

-Site(html files)
--Authenticated(asp.net application)
-SiteDifferentLanguage(html files)

Once the user selects a different language, the main page is using the
files in the SiteDifferentLanguage directory as the root but the same
authenticated files.

I need help with this since the asp.net process seems to recycle way
too early.

/erik
Joey - 20 Mar 2006 17:49 GMT
Are you changing any files or directories within your website folder
with server code? This would probably cause an AppDomain restart and
would blow away all Session variables. If you are then look at
FileChangeNotification and AppDomain restarts in asp.net 2.0. I don't
know if you are doing this, but it has been causing me lots of
headaches since upgrading to 2.0. In my opinion they are WAY too
agressive with this in 2.0. It wasn't a problem in 1.1. Oh well, you
take the bad with the good.

JP
Inga2005 - 21 Mar 2006 17:32 GMT
sounds like my problem, how did you solve this?
/erik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.