"global" variables

S

Sir Psycho

Is there a way to set a global variable without using the Session
object?

I basically want to be able to track if a visitor is logged in without
starting a Session. Is there such a thing as a global variable that
stays alive?
 
N

Nick Chan

hi Sir

Session is only global to a user only

i do not know the expert way, but i'd use hashtable in Cache

if cache("users") is nothing then
cache("users") = new hashtable
end if

if cache("users")("calvin") is nothing then
'not logged on
else
'logged on
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top