468,136 Members | 1,471 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

Session variables inside shared functions

Hello,

My question is simple.

If Session variables were to be assigned a value inside a shared function,
does the session data visible to other sessions (Other users). I know the
variables used inside the shared function are shared as well, is it same for
session variables...?

example vb.net;

class test
public shared SharedFunction (byVal EmployeeID)
HttpContext.Current.Session("EmployeeID")=Employee ID
return true
end sub

the above shared class is called from code behind.

//Inside Button Submit code, code behind
test.SharedFunction("Bill")

Will the value "Bill" visible bind to the user session or visible all acrosss?

Thanks

Jun 20 '06 #1
2 6686
Session variables will not be visible to other sessions.

Eliyahu

"Ibrahim." <Ib*****@discussions.microsoft.com> wrote in message
news:09**********************************@microsof t.com...
Hello,

My question is simple.

If Session variables were to be assigned a value inside a shared function,
does the session data visible to other sessions (Other users). I know the
variables used inside the shared function are shared as well, is it same
for
session variables...?

example vb.net;

class test
public shared SharedFunction (byVal EmployeeID)
HttpContext.Current.Session("EmployeeID")=Employee ID
return true
end sub

the above shared class is called from code behind.

//Inside Button Submit code, code behind
test.SharedFunction("Bill")

Will the value "Bill" visible bind to the user session or visible all
acrosss?

Thanks

Jun 20 '06 #2
Thanks Eliyahu.
"Eliyahu Goldin" wrote:
Session variables will not be visible to other sessions.

Eliyahu

"Ibrahim." <Ib*****@discussions.microsoft.com> wrote in message
news:09**********************************@microsof t.com...
Hello,

My question is simple.

If Session variables were to be assigned a value inside a shared function,
does the session data visible to other sessions (Other users). I know the
variables used inside the shared function are shared as well, is it same
for
session variables...?

example vb.net;

class test
public shared SharedFunction (byVal EmployeeID)
HttpContext.Current.Session("EmployeeID")=Employee ID
return true
end sub

the above shared class is called from code behind.

//Inside Button Submit code, code behind
test.SharedFunction("Bill")

Will the value "Bill" visible bind to the user session or visible all
acrosss?

Thanks


Jun 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Bob Bedford | last post: by
7 posts views Thread by Michael | last post: by
4 posts views Thread by John Kraft | last post: by
3 posts views Thread by Philip Tepedino | last post: by
15 posts views Thread by Jason | last post: by
9 posts views Thread by Randy | last post: by
17 posts views Thread by Control Freq | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.