I have an environment that basically has two primary databases at different locations that replicate with each other in a Peer to Peer topology. We also use an ASPState database to maintain user logins. What my customer would like to see is for a user to be able to log into one site, then also be logged into the other site. I am wondering is using SQL Replication on the ASPState database will accomplish this. I have searched Google for this scenario, and not found anything useful. I have found a few articles on mirroring the ASPState database, but this won't work for us since both ASPState databases need to be read/write. I am basically looking for any pros and cons using replication, and if anybody is currently doing that, please let me know how it works.
I wouldn't advise this at all. you would have to use merge replication with some form of conflict management to do this. there would then be a latency between the 2 databases (especially under heavy load) merge replication would also require you to add a GUID column to each table replicated which may affect the use of the session tables. (especially since it is not uncommon for ASPState databases to be rebuilt every now and then) you also have some potential issues with session expiry - whatever deletes or expires the session is going to occur at both sites. you would be better trying to get the second site to be able to talk to the main session database... or come up with a clever way of using cookies/browser session to take a copy of the ASPState row and if you move , then that is posted back to your remote site.... may have some complications with that though - especially in security (people modifying their session on the second server)