Hello,
Can someone please tell me how to "write" and "read"
to/from a session variable.
IE. I need to know how to store something in it and then retrieve that which I stored from it.
Please help,
T
Printable View
Hello,
Can someone please tell me how to "write" and "read"
to/from a session variable.
IE. I need to know how to store something in it and then retrieve that which I stored from it.
Please help,
T
session("myvariable")="test ok"
response.write session("myvariable")
Thanks Alex,
I must be doing something wrong!!
I copied and pasted your code and created a variable
myvariable....
Dim myvariable
When I try to run the code I get the error......
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'session'
Thanks,
T
That's strange
Do you include the directive "EnableSessionState=False" at the beginning of your ASP page? If so, remove it
Do you have sessions enabled in the config of your web app (check using the IIS manager)?
Hey Tom,
Jip, that's what the problem was - EnableSessionState=False!!
Thanks,
T