Application loses authentication when performing redirect to a virtual directory

Posted by nuhusky2003 on Stack Overflow See other posts from Stack Overflow or by nuhusky2003
Published on 2010-05-03T17:27:25Z Indexed on 2010/05/03 17:38 UTC
Read the original article Hit count: 275

I have the following setup: http://www.example.com/dir1/ and http://www.example.com/dir2/

Each virtual directory is configured on IIS6.0 as an application with own AppPool.

When redirecting authenticated user from dir1 to dir2 using response.redirect I lose authentication information for the user and the user is being redirected to the login page. This issue was not coming up with each app (dir1 and dir2) were configured under subdomain, ex: http://dir1.example.com and http://dir2.example.com.

I have resolved the issue by adding a machine key to the machine.config file.

Can someone explain to me why it's not working on a http://www.example.com/dir1 configuration?

© Stack Overflow or respective owner

Related posts about iis6

Related posts about forms-authentication