473,503 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7014
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1889
by: Bob Bedford | last post by:
In the attempt to keep the URL and code quite clean, and avoid to have a very loooong url, we have used $_session for storing values trough the pages. Now, we have some clients that doesn't get...
7
3106
by: Michael | last post by:
Hi newsgroup, as the subject indicates I am looking for an advice using global variables. I am not if this problem is more about style then C. If its wrong in thi group, sorry. So I have a...
4
11711
by: John Kraft | last post by:
Hi all, My question is more of a phylisophical one here, but I am wondering what the difference is (effectively and performance wise) between using a shared variable/static variable and using a...
2
1617
by: Don | last post by:
I'm asking this for a friend of mine, so forgive me if I'm getting some of the terminology wrong (I don't have any experience with ASP.NET). I've got an ASP application that has some classes that...
3
3631
by: Philip Tepedino | last post by:
I'm having an odd problem. My website's session state is getting shared between users! This problem only happens when a user tries to access the site from inside our corporate LAN. The user,...
15
2462
by: Jason | last post by:
Currently, I am storing information about the currently logged on user in Session variables that are stored in SQL. However, I am using role-based security, so I am storing custom roles in a...
9
3168
by: Randy | last post by:
Hello, I'm having a strange problem. I've got a .NET web app which uses Session variables. Sometime, not all the time, they get cross threaded...that is...one user will have another user's Session...
17
5066
by: Control Freq | last post by:
Hi, Not sure if this is the right NG for this, but, is there a convention for the variable names of a Session variable? I am using .NET 2.0 in C#. I am new to all this .NET stuff, So, any...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.