473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 7004
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...

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.