[Mono-aspnet-list] Same Machinekey on Mono and IIS running MVC 4

Sniperumm sniperumm at hotmail.com
Thu Dec 6 12:25:52 UTC 2012


Current setup:

Server A -

OS: Debian Squeeze 
Web Server: Nginx + Fastcgi + Mono 3.0
ASP.NET MVC 4 (.Net 4.5) using base internet template.
Db Backend: Mysql
Domain: (example) servera.domain.com


Server B - 

OS: Windows Server 2012
Web Server: IIS8
ASP.NET MVC 4 (.Net 4.5) using base internet template.
Db Backend: Mysql
Domain: (example) serverb.domain.com

Both servers are using the same machine key and the cookie is set to
.domain.com. Cookie name is set to .ASPXAuth (to override the mono cookie
name).

The idea is to register on Server A and to be able to login with the same
details on Server B. Also if you log into Server B you should be able to
browse to Server A and still be logged in. But this isn't working. I cannot
login with the same details on both servers and the cookie created isn't
working on both servers only one.

If I remove the machine key from both machines then I can create an account
and login to both servers with these details but as the machine key isn't
set the cookie create won't work on both servers.

I have tested this between two windows servers and it works fine. Is Mono
doing something different with the machine key?

Any ideas?



--
View this message in context: http://mono.1490590.n4.nabble.com/Same-Machinekey-on-Mono-and-IIS-running-MVC-4-tp4657664.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list