|
-
Feb 25th, 2001, 05:09 AM
#1
Thread Starter
Hyperactive Member
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
-
Feb 25th, 2001, 06:55 AM
#2
Addicted Member
session("myvariable")="test ok"
response.write session("myvariable")
ASP, SQL, VB6, Java Script and dubious guitar playing skills.
-
Feb 25th, 2001, 07:27 AM
#3
Thread Starter
Hyperactive Member
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
-
Feb 25th, 2001, 11:27 AM
#4
Guru
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)?
-
Feb 25th, 2001, 11:42 AM
#5
Thread Starter
Hyperactive Member
Hey Tom,
Jip, that's what the problem was - EnableSessionState=False!!
Thanks,
T
-
Feb 25th, 2001, 11:46 AM
#6
Guru
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|