Click here to Skip to main content
16,012,611 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ie mac issues Pin
Not Active8-Dec-03 6:15
mentorNot Active8-Dec-03 6:15 
GeneralRe: ie mac issues Pin
dknypinay8-Dec-03 6:50
dknypinay8-Dec-03 6:50 
GeneralRe: ie mac issues Pin
Not Active8-Dec-03 10:31
mentorNot Active8-Dec-03 10:31 
GeneralTextbox validation Pin
si_693-Dec-03 4:16
si_693-Dec-03 4:16 
GeneralRe: Textbox validation Pin
Geoff Kushnir3-Dec-03 18:46
Geoff Kushnir3-Dec-03 18:46 
GeneralRe: Textbox validation Pin
Populate1233-Dec-03 21:16
Populate1233-Dec-03 21:16 
GeneralRe: Textbox validation Pin
markkuk4-Dec-03 0:14
markkuk4-Dec-03 0:14 
GeneralUserConcurrency Pin
eolss3-Dec-03 3:31
eolss3-Dec-03 3:31 
How can I count the number of online users on my site? I have implemented my application as follows. Whenever a user logs in, I increment the count field in my database by 1 in Session_Begin and on Session_End I decrement it by 1.Though the code works fine in normal circumstances, I noticed a few anamolies:
1. If the user refreshes his browser, the Session_Begin is called again and the counter is incremented again. To overcome this, I used cookies. The first time the user logs in, I create the cookie. When the user refreshes his browser, it checks if the cookie exists, if it doesnt it treats it as a new request and updates the counter accordingly.
2. The problem arises on log out. Whenever the user refreshes his browser, Session_End is called that many times, and my counter is decremented more than once. How can I get Session_End to run only once for each instance of the browser?
3. I'm using Forms Authentication and on Session_End I want to call FormsAuthentication.SignOut since the user can still access the pages after the session ends,causing a new session to be started. But this function does not work in Session_End.

GeneralRe: UserConcurrency Pin
Geoff Kushnir3-Dec-03 19:01
Geoff Kushnir3-Dec-03 19:01 
GeneralRe: UserConcurrency Pin
Populate1233-Dec-03 21:28
Populate1233-Dec-03 21:28 
GeneralConcurrency Metering Pin
eolss3-Dec-03 3:30
eolss3-Dec-03 3:30 
Generalsupplying <frame> content within same HTML file Pin
moredip2-Dec-03 14:48
moredip2-Dec-03 14:48 
Generalfile transfer!!!!! Pin
Mr. Cully2-Dec-03 6:39
Mr. Cully2-Dec-03 6:39 
GeneralRe: file transfer!!!!! Pin
moredip2-Dec-03 15:14
moredip2-Dec-03 15:14 
GeneralRe: file transfer!!!!! Pin
Populate1233-Dec-03 21:33
Populate1233-Dec-03 21:33 
GeneralSecure Cookies Pin
MatrixUndone2-Dec-03 6:05
sussMatrixUndone2-Dec-03 6:05 
GeneralRe: Secure Cookies Pin
Ian Darling2-Dec-03 6:28
Ian Darling2-Dec-03 6:28 
GeneralRe: Secure Cookies Pin
MatrixUndone2-Dec-03 7:14
sussMatrixUndone2-Dec-03 7:14 
GeneralRe: Secure Cookies Pin
Heath Stewart2-Dec-03 9:05
protectorHeath Stewart2-Dec-03 9:05 
GeneralRe: Secure Cookies Pin
MatrixUndone3-Dec-03 7:37
sussMatrixUndone3-Dec-03 7:37 
GeneralRe: Secure Cookies Pin
Heath Stewart3-Dec-03 8:19
protectorHeath Stewart3-Dec-03 8:19 
GeneralPlatform Confusion Pin
michael watt2-Dec-03 3:09
michael watt2-Dec-03 3:09 
GeneralRe: Platform Confusion Pin
Not Active2-Dec-03 4:14
mentorNot Active2-Dec-03 4:14 
GeneralRe: Platform Confusion Pin
michael watt2-Dec-03 8:44
michael watt2-Dec-03 8:44 
GeneralRe: dhtml/javascript/iframe/link inline html Pin
ZoogieZork2-Dec-03 2:17
ZoogieZork2-Dec-03 2:17 

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.