Problem: Module's Friend variable shared across user sessions

G

Guest

We just learned [the hard way...in production] that a variable declared
Friend within a module can be shared across multiple user sessions.

Is there any way to declare a Friend variable within a module, so that it is
isolated to a single user session? Or should I revert to using session
variables?

Thanks,

Eric
 
S

Steve C. Orr [MVP, MCSD]

For session scoped variables you should generally use the session object.
That's what it's there for.
 
G

Guest

Thank you, Steve. I went through my code and swapped the Friend references
with a Session variable, and it works fine.

Thanks again,

Eric

Steve C. Orr said:
For session scoped variables you should generally use the session object.
That's what it's there for.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


We just learned [the hard way...in production] that a variable declared
Friend within a module can be shared across multiple user sessions.

Is there any way to declare a Friend variable within a module, so that it
is
isolated to a single user session? Or should I revert to using session
variables?

Thanks,

Eric
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top