Click here to Skip to main content
15,925,782 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Problem in JavaScript Pin
hiral_shah18-Sep-06 20:10
hiral_shah18-Sep-06 20:10 
GeneralProblem in JavaScript is solved Pin
hiral_shah18-Sep-06 20:28
hiral_shah18-Sep-06 20:28 
GeneralRe: Problem in JavaScript is solved Pin
_AK_18-Sep-06 20:34
_AK_18-Sep-06 20:34 
QuestionMySQL problem with CMS Mambo Pin
torniker18-Sep-06 11:10
torniker18-Sep-06 11:10 
QuestionHow can I detect ALT PRTSCN keys if pressed with javascript? Pin
JUNEYT18-Sep-06 10:27
JUNEYT18-Sep-06 10:27 
AnswerRe: How can I detect ALT PRTSCN keys if pressed with javascript? Pin
Stephan Pilz20-Sep-06 2:25
Stephan Pilz20-Sep-06 2:25 
QuestionHow many people are online? Pin
10011000100101101000018-Sep-06 6:37
10011000100101101000018-Sep-06 6:37 
AnswerRe: How many people are online? Pin
JUNEYT18-Sep-06 10:24
JUNEYT18-Sep-06 10:24 
Hello!

It is all about defining the application variables in global.asa file. It is very simple see the codes for global.asa file below. And then you can use application variables in any pages as Application("CurrentUsers") etc. examine the code below... However your IIS server sometimes can reset the application variables when it gets restarted that what happens. Therefore I advice you to keep values in the database.

GLOBAL.ASA FILE

Sub Application_OnStart
Application.Lock

Application("Visitors") = 0
Application("CurrentVisitors") = 0

Application.UnLock
End Sub



Sub Session_OnStart
Application.Lock

Application("CurrentVisitors") = Application("CurrentVisitors") + 1
Application("Visitors") = Application("Visitors") + 1

Application.UnLock
End Sub


Sub Session_OnEnd
Application.Lock

Application("CurrentVisitors") = Application("CurrentVisitors") - 1

Application.UnLock
End Sub


GeneralRe: How many people are online? Pin
10011000100101101000018-Sep-06 11:18
10011000100101101000018-Sep-06 11:18 
GeneralRe: How many people are online? Pin
JUNEYT18-Sep-06 22:00
JUNEYT18-Sep-06 22:00 
GeneralRe: How many people are online? Pin
10011000100101101000019-Sep-06 8:03
10011000100101101000019-Sep-06 8:03 
QuestionEnable securiyt setting in IE Pin
lucluv18-Sep-06 2:22
lucluv18-Sep-06 2:22 
AnswerRe: Enable securiyt setting in IE Pin
CWIZO18-Sep-06 3:35
CWIZO18-Sep-06 3:35 
AnswerRe: Enable securiyt setting in IE Pin
Guffa18-Sep-06 6:24
Guffa18-Sep-06 6:24 
QuestionWebservice namespace return object problem Pin
acardeiradias17-Sep-06 23:25
acardeiradias17-Sep-06 23:25 
AnswerRe: Webservice namespace return object problem Pin
minhpc_bk18-Sep-06 19:43
minhpc_bk18-Sep-06 19:43 
GeneralRe: Webservice namespace return object problem Pin
acardeiradias18-Sep-06 23:43
acardeiradias18-Sep-06 23:43 
Questionhow to reach an xml file or a database from a web page? Pin
Joan M17-Sep-06 22:48
professionalJoan M17-Sep-06 22:48 
AnswerRe: how to reach an xml file or a database from a web page? Pin
JUNEYT18-Sep-06 10:50
JUNEYT18-Sep-06 10:50 
Questionclosing popup window after refreshin Pin
248912817-Sep-06 20:11
248912817-Sep-06 20:11 
AnswerRe: closing popup window after refreshin Pin
Guffa17-Sep-06 20:48
Guffa17-Sep-06 20:48 
GeneralRe: closing popup window after refreshin Pin
248912817-Sep-06 20:56
248912817-Sep-06 20:56 
GeneralRe: closing popup window after refreshin Pin
M LN Rao18-Sep-06 1:00
M LN Rao18-Sep-06 1:00 
AnswerRe: closing popup window after refreshin Pin
Guffa18-Sep-06 6:27
Guffa18-Sep-06 6:27 
QuestionGmail & AJAX Pin
abalfazl17-Sep-06 9:15
abalfazl17-Sep-06 9:15 

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.