I have two asp.net project on my machine. I am using both, and have noticed that whenever I log to one, then log out, then try the other one, the authentication is gone. I need to relogin although I have set the cookie. It seems that the following code used to set the authenticaiton is not enough:
each project is in a seperate folder, each folder has it's own App_Data folder and each one of those has its own ASPNET.mdf (or something like that) correct?
A membership database is where your project stores membership information. I am assuming you haven't moved it to a remote location (you would know if you did this).
I had one asp.net project. I copied the folder, and named it to the new project, and that's how i did it. they work fine each as a separate project but i have just noticed the authentication thing.
Yeah, most likely your problem is that they are authenticating off of different authentication sources. Another thing it could be is when you log in to both projects on the local machine, are you using the same port? You could move your authentication source to a single database to make this stop. I put the steps to do this here: http://naspinski.net/post/Moving-ASPNET-roles-from-TestLocal-to-Production.aspx
You are connecting over different ports to different databases, they are NOT going to recognize eachother as valid logins. They are seperate and that is by design. It is just the same as if you were to go to a completely different website that just happened to have the same named cookie and DB, it still is not going to authenticate for both.