WebService and cookies

M

Manso

Hi all,

We have two ASP.NET applications (App A & B) in two different sites. App B
is consuming a webservice exposed by App A and state is kept using

=========================
If HttpContext.Current.Session("CookieAppB") Is Nothing Then
HttpContext.Current.Session("CookieAppB") = New System.Net.CookieContainer
End If

objWebSvcAppA.CookieContainer = HttpContext.Current.Session("CookieAppB")
.....
=========================

We keep session state in App B because App A uses an authentication
mechanism that can be quite slow perfoming.

Now to the problem. The webservice in App A returns data that is used to
render img tags with the src-attribute pointing back to a page in App A. Is
there anyway I can change the code above so the subsequent requests from the
browser (for the img tag) uses the session information from the first (and
already authenticated) request? This is the flow:

1. App B authenticates and request data from App A.
2. App B renders a page with <img> tags pointing to App A
3. The requests from the browser are not authenticated for the src tags to
App A.

I can't seem to figure out a way to tell App A that the browser is
authenticated. I don't want to store information in the querystring in the
src attribute for security reasons.

Does anyone have any ideas on this? I can't seem to find a good way to
transfer the session container from one application to another.

Thanks in advance!

- MÃ¥ns
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top