View previous topic :: View next topic |
Author |
Message |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Sun Oct 05, 2003 10:40 pm Post subject: Redirecting logged in users |
|
|
Is their anyway once a user has logged in to redirect them to their area are of the server?
Eg:
Admin logs in, I want them to be redirected to servername/login/admin.
OR
User logs in, I want them to be redirected to servername/login/user
Is there a why to do this without using php/perl and the abyss log in system
:?: _________________ Olly |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 07, 2003 12:16 am Post subject: Re: Redirecting logged in users |
|
|
How the user logs in? Does he/she authenticate using the Access Control of Abyss Web Server? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Tue Oct 07, 2003 5:21 pm Post subject: |
|
|
they will log in useing the abyss log in system _________________ Olly |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Wed Oct 08, 2003 10:58 pm Post subject: |
|
|
BUMP :idea:
Anyone :?: _________________ Olly |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Oct 08, 2003 11:43 pm Post subject: |
|
|
olly86 wrote: | they will log in useing the abyss log in system |
We're working on a solution using SSI. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Thu Oct 09, 2003 3:21 pm Post subject: |
|
|
thanks :D _________________ Olly |
|
Back to top |
|
 |
badai -
Joined: 24 Apr 2003 Posts: 82
|
Posted: Wed Oct 15, 2003 2:41 pm Post subject: |
|
|
i use php
$user = $_SERVER["AUTH_USER"];
switch($user) {
case "user1" : header("Location : url1");
break;
case "user2" : header("Location : url2");
break;
case "user3" : header("Location : url3");
break;
default : header("Location : url4");
}
aprelium wrote: | olly86 wrote: | they will log in useing the abyss log in system |
We're working on a solution using SSI. |
|
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Wed Oct 15, 2003 4:35 pm Post subject: |
|
|
badai wrote: | i use php
$user = $_SERVER["AUTH_USER"];
switch($user) {
case "user1" : header("Location : url1");
break;
case "user2" : header("Location : url2");
break;
case "user3" : header("Location : url3");
break;
default : header("Location : url4");
}
|
i've got php to work on my system now..........but how do i program in php
i've tried pasteing it in to a blank page but it just appers as code............and my web seaches have found nothing usefull :roll: _________________ Olly |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Oct 17, 2003 3:49 pm Post subject: |
|
|
The solution in SSI:
We assume that there is a virtual path /users and that every user has his directory inside this one. For example, mary's directory is /users/mary and jack's is /users/jack .
Declare mary and jack in Groups and Users (in the console). Now password protect /users (in Access Control) so that mary and jack are allowed access to it.
Password protect mary's directory /users/mary so that only mary can access it. Do the same with jack's directory.
Now put the following SSI file index.shtml in /users :
Code: | <HTML>
<HEAD>
<META HTTP-EQUIV=Refresh CONTENT="1; URL=/users/<!--#echo var="REMOTE_USER" -->">
</HEAD>
</HTML> |
You should also edit the Index files in the Server paramaters so that the list contains in the order index.shtml index.html index.htm . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|