Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WebService and cookies

Reply
Thread Tools

WebService and cookies

 
 
Manso
Guest
Posts: n/a
 
      04-26-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
Persistant cookies and non-persistant cookies. archana ASP .Net 1 05-25-2007 08:43 AM
Windows app using webservice sessions and cookies Joshua Moore ASP .Net Web Services 3 01-19-2006 06:51 PM
Response.Cookies vs Request.Cookies Alex Nitulescu ASP .Net 1 02-03-2005 09:43 AM
Persistent Cookies vs. session cookies Andy Fish Java 3 11-06-2003 10:44 AM



Advertisments