Redirecting logged in users

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Sun Oct 05, 2003 10:40 pm    Post subject: Redirecting logged in users Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 07, 2003 12:16 am    Post subject: Re: Redirecting logged in users Reply with quote

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 View user's profile Send private message Send e-mail
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Tue Oct 07, 2003 5:21 pm    Post subject: Reply with quote

they will log in useing the abyss log in system
_________________
Olly
Back to top View user's profile Send private message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Wed Oct 08, 2003 10:58 pm    Post subject: Reply with quote

BUMP :idea:

Anyone :?:
_________________
Olly
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Oct 08, 2003 11:43 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Thu Oct 09, 2003 3:21 pm    Post subject: Reply with quote

thanks :D
_________________
Olly
Back to top View user's profile Send private message
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Wed Oct 15, 2003 2:41 pm    Post subject: Reply with quote

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 View user's profile Send private message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Wed Oct 15, 2003 4:35 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Oct 17, 2003 3:49 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group