ok, please help.
if i create a session variable in page1.asp like this:
Session("myName"="Sam"
and try to read it from page2.asp like this:
Response.Write ("Name is = " &Session("myName")
why is it blank?
I have spent all day, playing with arrays, collections etc, if I access the variable from within the same page, ie: page1.asp or the global.asa page its ok, I have also noticed the Sub Session_OnStart is called in the global.asa page every time I log into a page, regardless if I am currently in a session, this doesnt seam right, as i thought the Sub Session_OnStart was only called once per session?
Please help! I am only just beginning asp and really need to get my head around this so i can begin persisting and sharing data amoungst single user sessions and multiple users.
Thanks in anticipation!
Sam x
[sig][/sig]
if i create a session variable in page1.asp like this:
Session("myName"="Sam"
and try to read it from page2.asp like this:
Response.Write ("Name is = " &Session("myName")
why is it blank?
I have spent all day, playing with arrays, collections etc, if I access the variable from within the same page, ie: page1.asp or the global.asa page its ok, I have also noticed the Sub Session_OnStart is called in the global.asa page every time I log into a page, regardless if I am currently in a session, this doesnt seam right, as i thought the Sub Session_OnStart was only called once per session?
Please help! I am only just beginning asp and really need to get my head around this so i can begin persisting and sharing data amoungst single user sessions and multiple users.
Thanks in anticipation!
Sam x
[sig][/sig]