PC Review


Reply
Thread Tools Rate Thread

Cookies and Forms Authentication

 
 
=?Utf-8?B?Z2Vj?=
Guest
Posts: n/a
 
      4th May 2005
I've read of two different methods in this newsgroup to overcome the
limitations of the missing CookieContainer in the CompactFramework.

There is the GetWebRequest override method which is described by michael
Yuan at
http://www.ondotnet.com/pub/a/dotnet...rviceapps.html and
the SessionAwareWebSvc example supplied by Alex Feinman.

I have tried both of these examples and they equaly work very well to solve
the problem with session state. However, I am hoping to combine this with
suport for forms authentication within my web service.

First call to the Web Service I authenticate the user and call
FormsAuthentication.SetAuthCookie(username,false). Each successive call to
the Web Service I check (Context.User.Identity.IsAuthenticated) which always
returns false.

I have verified that the session state is operational and I can store items
in the session and retrieve these against successive calls to the Web Service
- its just the Forms authentication that wont function. I was under the
impression that this simply stored a cookie and attached this to the outoing
response stream.

Anyone got any ideas on how to get this working with the .NETcf?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Does Forms Authentication require cookies? Peter Rilling Microsoft ASP .NET 4 12th Apr 2006 04:32 PM
forms authentication and cookies Phil Townsend Microsoft ASP .NET 1 3rd Nov 2004 03:21 PM
cookies/forms authentication Brian Shannon Microsoft ASP .NET 2 3rd Aug 2004 11:13 PM
ASP.NET Forms Authentication and Cookies Jeff Microsoft ASP .NET 1 28th Apr 2004 04:23 AM
.NET Forms Authentication / Session cookies anony Microsoft ASP .NET 5 8th Jan 2004 08:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 AM.