Lets see if I can answer your questions.
It's not possible to "redirect" a user to a specific page after successfull login, but you can do something similar as the people asking for unique pages for each user. Read more about that at the following posts:
http://www.xavierforum.com/viewtopic.php?t=4044
http://www.xavierforum.com/archive/7_1519.php
You can get the users group id like this:
Code:
<? echo mysql_result($user_info,0,"ugroup"); ?>
The above code can be used on any protected page you like and it's not the group name you get, it's the group id (like
5660GK).
Using the topics and the above code you get something like this:
Code:
<?
$group = mysql_result($user_info,0,"ugroup");
if (file_exists("someplacehidden11838393/$group.php"))
include("someplacehidden11838393/$group.php");
else
echo "No group file found!";
?>
Call the above code
members.php or something like that and ask all members to login at that page.
You can of course also setup diffrent pages for each group like "
accounting.php", "
marketing.php", etc and ask the users to login directly at the diffrent pages. I think I read something that you didn't want it like that.
When you're talking about subdomains do you mean actual subdomains like demo1.sampleaddress.com and demo2.sampleaddress.com? Because then you should only change the cookie domain to
.sampleaddress.com instead of
sampleaddress.com. Then the users will be able to login at demo1.sampleaddress and visit pages at demo2.sampleaddress.com without login in again (if they have rights to access the pages on demo2.sampleaddress.com that is).