Forum Moderators: open

Message Too Old, No Replies

Passing user info between sites

         

dave1236

3:22 pm on Sep 15, 2006 (gmt 0)

10+ Year Member



We have implemented a number of sites, and are having an issue with keeping a user logged in when they move from site to site.

I am familiar with PHP, but we operate in ASP (and I am not sure how we authenicate users) - I just know we need to have a user keep their login as they move from site to site (they are simply subdomains, ie - www.abc.com; blogs.abc.com; and files.abc.com are three sites)

Any suggestions on how to do this in ASP - do we use cookies/sessions?

mrMister

6:07 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In ASP.Net you can automatically maintain state between different servers using SQL Server.

In Classic ASP, you'll have to maintain state manually using cookies.

dave1236

6:21 pm on Sep 15, 2006 (gmt 0)

10+ Year Member



Thanks. We are using ASP.NET 2.0 - and Community Server, so we should be able to pass login info via simple "authenication checks"?

mrMister

7:19 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I apologise, I managed to confuse myself. SQL Server sessions can maintain state across different machines but not necessarily across different hosts.

As far as I'm aware this is not possible within IIS.

Off the top of my head, the easiest way to implement this functionality would be to write an HTTP proxy that acts as an intermediary betwen your ASP.Net application and the client machine. This proxy should rewrite the session cookie header in the HTTP response so as to make it valid across multiple domains.

dave1236

2:14 pm on Sep 19, 2006 (gmt 0)

10+ Year Member



Thanks! I will pass this on!