Hi,
I keep several variables in a statevalue like:
Dim session As SessionState.HttpSessionState =
System.Web.HttpContext.Current.Session
session("connect") = " FKHFSF "
I thought that these variables would be the exclusive use of one connected
user/connection. But it looks like that in a multiuser enviroment some
variables are shared. So I end on the page somenone else was editing.
What am I missing here. (I have not modified any property of the session
variable)
TonNo other code than that ? It looks like it should work (of course all users
will have the same connect value if you store always FKHFSF for all users).
What if you are using directly System.Web.HttpContext.Current.Session.
Other than that , it would like as if you were using a shared property
somewhere...
Patrice
"ton" <vrs@.REMOVEhome.nl> a crit dans le message de
news:c4jor3$68l$1@.news1.tilbu1.nb.home.nl...
> Hi,
> I keep several variables in a statevalue like:
> Dim session As SessionState.HttpSessionState =
> System.Web.HttpContext.Current.Session
> session("connect") = " FKHFSF "
> I thought that these variables would be the exclusive use of one connected
> user/connection. But it looks like that in a multiuser enviroment some
> variables are shared. So I end on the page somenone else was editing.
> What am I missing here. (I have not modified any property of the session
> variable)
> Ton
No other code than that ! I save the logged in user, the page where I, the
details, the recordID of the record they asked.
but when 2 users connect via internet with my page, the values get mixed up.
I have to say that I've developed a Customserver control and that is using
the state variable
Ton
"Patrice" <nobody@.nowhere.com> schreef in bericht
news:eZGEnYLGEHA.1720@.tk2msftngp13.phx.gbl...
> No other code than that ? It looks like it should work (of course all
users
> will have the same connect value if you store always FKHFSF for all
users).
> What if you are using directly System.Web.HttpContext.Current.Session.
> Other than that , it would like as if you were using a shared property
> somewhere...
> Patrice
>
> "ton" <vrs@.REMOVEhome.nl> a crit dans le message de
> news:c4jor3$68l$1@.news1.tilbu1.nb.home.nl...
> > Hi,
> > I keep several variables in a statevalue like:
> > Dim session As SessionState.HttpSessionState =
> > System.Web.HttpContext.Current.Session
> > session("connect") = " FKHFSF "
> > I thought that these variables would be the exclusive use of one
connected
> > user/connection. But it looks like that in a multiuser enviroment some
> > variables are shared. So I end on the page somenone else was editing.
> > What am I missing here. (I have not modified any property of the session
> > variable)
> > Ton
No other code than that ! I save the logged in user, the page where I, the
details, the recordID of the record they asked.
but when 2 users connect via internet with my page, the values get mixed up.
I have to say that I've developed a Customserver control and that is using
the state variable
Ton
"Patrice" <nobody@.nowhere.com> schreef in bericht
news:eZGEnYLGEHA.1720@.tk2msftngp13.phx.gbl...
> No other code than that ? It looks like it should work (of course all
users
> will have the same connect value if you store always FKHFSF for all
users).
> What if you are using directly System.Web.HttpContext.Current.Session.
> Other than that , it would like as if you were using a shared property
> somewhere...
> Patrice
>
> "ton" <vrs@.REMOVEhome.nl> a crit dans le message de
> news:c4jor3$68l$1@.news1.tilbu1.nb.home.nl...
> > Hi,
> > I keep several variables in a statevalue like:
> > Dim session As SessionState.HttpSessionState =
> > System.Web.HttpContext.Current.Session
> > session("connect") = " FKHFSF "
> > I thought that these variables would be the exclusive use of one
connected
> > user/connection. But it looks like that in a multiuser enviroment some
> > variables are shared. So I end on the page somenone else was editing.
> > What am I missing here. (I have not modified any property of the session
> > variable)
> > Ton
Thursday, March 29, 2012
Session variable are shared between users
Labels:
asp,
httpsessionstate,
likedim,
net,
session,
sessionstate,
shared,
statevalue,
users,
variable,
variables
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment