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 / February 2006

Tip: Looking for answers? Try searching our database.

Is there a way to know if a user is browsing my site?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andrea - 17 Feb 2006 18:19 GMT
I should make a page that modify the web.config file, appsettings area. For
what I know, every modify to config file mean a reboot of the context application,
so if a user is browsing on a web site, it mean losting session and everything
... and in a shopping cart scenario it's not exactly the best solution to
implement.

So before let admin user changes some parameters, I want to be sure nobody
is using the web site.
Is it possible?

Thank you
Andrea
slagomite - 17 Feb 2006 18:48 GMT
If you set the "mode" attribute of the "sessionState" setting in
web.config to "StateServer", users' sessions will not be stored in the
application's in-memory process, but rather in a separate service
running on the server.  This way, recompiling or restarting your web
app will not wipe out session information.

(You will also have to start the "ASP.NET State Service" on your
server:  Start > Administrative Tools > Services; right-click the
service > Properties; click Start, and change Startup Type to
Automatic.)

HTH
Luke
andrea - 17 Feb 2006 21:17 GMT
Is the services started automatically on a windows 2003 or it depends by
the administrator?
Does it provide some loss of performance or something for which hosting scenario
could be compromised and for this hosting manager doesn't allow it?

Isn't there another solution?

Ciao
Andrea

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.