Track users across multiple sites

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JimiH
Forum Commoner
Posts: 92
Joined: Thu Jun 15, 2006 6:10 am

Track users across multiple sites

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
Post Reply