Page 1 of 1

Track users across multiple sites

Posted: Thu Mar 22, 2007 12:01 pm
by JimiH
Hello

We have multiple sites on our company Intranet, what I would like to do is have
the user login to the main page then they are tracked over the other sites to check
they have access.

This I can do to the main page, but how do I pass the session info
accross to the other pages which reside in different folders within IIS.

Code: Select all

<? include("d:/inetpub/wwwroot/ENG_Intranet/include/session.php"); ?>
The above doesn't work

Thanks

Geoff

Posted: Thu Mar 22, 2007 12:42 pm
by Christopher
The session ID should be passed, but I am not clear what you mean by "sites"? Does that mean multiple servers?

The most common way to do this is to implement database backed sessions and have all the servers connect to an external database server. Then the session can be maintained across multiple servers. This is pretty easy to implement and there are a number of examples around to guide you.