Click here to Skip to main content
15,907,905 members
Home / Discussions / C#
   

C#

 
QuestionExcel Borders Problem Pin
FreewareFire3-Feb-06 6:26
FreewareFire3-Feb-06 6:26 
AnswerRe: Excel Borders Problem Pin
Douglas Troy3-Feb-06 6:42
Douglas Troy3-Feb-06 6:42 
QuestionRe: Excel Borders Problem Pin
FreewareFire3-Feb-06 12:51
FreewareFire3-Feb-06 12:51 
AnswerRe: Excel Borders Problem Pin
Member 42856225-Nov-08 1:49
Member 42856225-Nov-08 1:49 
Questionmouse move and click in any other window Pin
toposte3-Feb-06 5:28
toposte3-Feb-06 5:28 
QuestionTracking Current Web Sessions Pin
Pualee3-Feb-06 5:08
Pualee3-Feb-06 5:08 
AnswerRe: Tracking Current Web Sessions Pin
Guffa3-Feb-06 6:03
Guffa3-Feb-06 6:03 
GeneralRe: Tracking Current Web Sessions Pin
Pualee3-Feb-06 7:12
Pualee3-Feb-06 7:12 
Guffa wrote:
Unless you use javascript in the browser to tell the server when the user leaves the page, there is no way that the server can know when this happens.


I'm not so much worried about the "event" of leaving, I just want to clean up some things periodically...

While still researching this topic, I have come across the following:

System.Web.SessionState.HttpSessionState class
.Count - Gets the number of items in the session-state collection
.Keys - Gets a collection of keys for all the values in the session-state collection

Shouldn't it be possible to loop on the .Keys to compare the active Keys against the keys my application believes are active? This might not be very scalable, but I'm not expecting thousands of users to connect per hour, this is a very specialized application.

I'm going to try this for now, but I'll be rechecking this board for feedback (never know when someone else has the same problem).

Also, would keeping the session data on server side, rather than as cookies, make this possible?

Pualee
GeneralRe: Tracking Current Web Sessions Pin
Ravi Bhavnani3-Feb-06 9:42
professionalRavi Bhavnani3-Feb-06 9:42 
AnswerRe: Tracking Current Web Sessions Pin
Guffa4-Feb-06 3:28
Guffa4-Feb-06 3:28 
QuestionHard Disk Manufacter Serial Number Pin
Stanciu Vlad3-Feb-06 4:56
Stanciu Vlad3-Feb-06 4:56 
AnswerRe: Hard Disk Manufacter Serial Number Pin
Simon Capewell3-Feb-06 5:54
Simon Capewell3-Feb-06 5:54 
GeneralRe: Hard Disk Manufacter Serial Number Pin
Stanciu Vlad3-Feb-06 6:14
Stanciu Vlad3-Feb-06 6:14 
GeneralRe: Hard Disk Manufacter Serial Number Pin
Simon Capewell3-Feb-06 6:19
Simon Capewell3-Feb-06 6:19 
GeneralRe: Hard Disk Manufacter Serial Number Pin
Stanciu Vlad3-Feb-06 21:27
Stanciu Vlad3-Feb-06 21:27 
Questionexport text/reports in XLS, HTML, PDF, DBF, XML format Pin
MihaiChioariu3-Feb-06 4:27
MihaiChioariu3-Feb-06 4:27 
AnswerRe: export text/reports in XLS, HTML, PDF, DBF, XML format Pin
malharone3-Feb-06 4:51
malharone3-Feb-06 4:51 
GeneralRe: export text/reports in XLS, HTML, PDF, DBF, XML format Pin
MihaiChioariu3-Feb-06 5:52
MihaiChioariu3-Feb-06 5:52 
GeneralRe: export text/reports in XLS, HTML, PDF, DBF, XML format Pin
malharone3-Feb-06 6:02
malharone3-Feb-06 6:02 
QuestionHelp with Environment.UserName and services Pin
DUKEMAN3-Feb-06 4:04
DUKEMAN3-Feb-06 4:04 
AnswerRe: Help with Environment.UserName and services Pin
Sean Michael Murphy3-Feb-06 5:17
Sean Michael Murphy3-Feb-06 5:17 
GeneralRe: Help with Environment.UserName and services Pin
DUKEMAN3-Feb-06 5:33
DUKEMAN3-Feb-06 5:33 
QuestionC# 2.0 & 1.1 interop Pin
ryancrawcour3-Feb-06 3:22
ryancrawcour3-Feb-06 3:22 
AnswerRe: C# 2.0 & 1.1 interop Pin
Sebastian Schneider3-Feb-06 4:22
Sebastian Schneider3-Feb-06 4:22 
AnswerRe: C# 2.0 & 1.1 interop Pin
Daniel Grunwald3-Feb-06 10:07
Daniel Grunwald3-Feb-06 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.