**HELP** Desperate Session & Objects

K

Kevin

I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses
(yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session
(q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5
 
G

Guest

I totally understand...this project - or should I say
Disaster - is what I've been thrown onto.

Also, My machine at home has the same setup..XP Pro IIS 5.1
 
C

Chris Barber

Errm do a global find and replace across the web application for Session("
and change it to Session.Contents(" which is what you should be using
anyway. Relying on default methods and properties is dangerous (as you have
just found) since there is no guarantee that they won't change.

Chris.

I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses
(yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session
(q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,112
Latest member
VinayKumar Nevatia
Top