Passing a valid Session Object from .NET to VB 6 objects 
Author Message
 Passing a valid Session Object from .NET to VB 6 objects

I am trying to access a VB6 object that is written to get its security and
DB connection information out of the Session object.
I want to wrap this object with a web service. My problem is that I need to
pass a valid session to the object to it. Is this possible?


Sat, 15 Nov 2003 01:11:26 GMT  
 Passing a valid Session Object from .NET to VB 6 objects
Anything is possible. I am not sure, however, that I am getting this. The
session will not tell you who the user is in a web service paradigm, unless
you authenticate the call to the service (via SOAP, I assume). Bearing this
in mind, you can just as easily authenticate on the SOAP message as put the
person in session, authenticate and then use the session ID.

As far as using a session ID to get user info, this should be fairly simple.
In traditional ASP, it was simply a matter of pulling the session ID. I have
not played with the .NET implementation, but I cannot imagine it would be
much more difficult.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************

Quote:
> I am trying to access a VB6 object that is written to get its security and
> DB connection information out of the Session object.
> I want to wrap this object with a web service. My problem is that I need
to
> pass a valid session to the object to it. Is this possible?



Sun, 16 Nov 2003 02:43:37 GMT  
 Passing a valid Session Object from .NET to VB 6 objects
You should not be "passing" session references around at all - that's bad
for VB6.

Instead, you should use the MTS ObjectContext to access the session object
in VB6.


Quote:
> I am trying to access a VB6 object that is written to get its security and
> DB connection information out of the Session object.
> I want to wrap this object with a web service. My problem is that I need
to
> pass a valid session to the object to it. Is this possible?



Tue, 18 Nov 2003 02:14:01 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing Form Fields to VB.NET Custom Business Object in an ASP.NET Code Behind Page

2. Detecting whether an object reference points to nothing or to a valid object

3. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

4. Passing VB.NET object to VB6 procedure

5. How to pass the value of a variable to Session object

6. Passing VB OLE objects in the Application object (IIS3, VB5, ASP, VBS)

7. How can I pass an object without Session()

8. Passing names of arrays stored in session object to function

9. Need Help Passing a Session Object to a Custom Control

10. Need to Access ASP Session Objects from External COM Object

11. Storing ATL-object in the Session Object??

12. Object caching using session object

 

 
Powered by phpBB® Forum Software