Author: pkellner | Posted on: 8/10/2010 7:08:42 PM | Views : 263

I'd like to write out a cookie for a different sub-domain than the one I'm running in. Basically, what I want to do is have a php forum page automatically be authenticated from the asp.net login.
That is, I have
forum.mysite.com (php)
www.mysite.com  (asp.net)
When the user log's in to www.mysite.com, I want to write a cookie out that the forum.mysite.com can pick up.  It's only going to have the username in it so no encryption is needed.  Nothing unsafe best I can tell.  I've tried the below code but that still seems to make an encrypted cookie.  I need to read it back into php unencrypted.
protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e) { if (FormsAuthentication.Authenticate(Login1.UserName,Login1.Password)) { // We can put ...

Go to the complete details ...