This topic is locked
[SOLVED]

 login.php

10/21/2005 22:03:15
PHPRunner General questions
kanso author

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=2020&image=1&table=forumtopics' class='bbc_emoticon' alt=':unsure:' />

Hi, I am trying to redirect group users to another page, after login.

I am guessing, I can change here(user_list.php)?
if(!CheckSecurity(@$_SESSION["OwnerID"],"Search") && !CheckSecurity(@$_SESSION["OwnerID"],"Add"))

{

echo "<p>"."You don't have permissions to access this table"."<a href=\"login.php\">"."Back to login page"."</a></p>";

return;

}
instead of echo and another link, can I redirect them to other page as soon as they login?

Sergey Kornilov admin 10/24/2005

Hi,
you can use the following snippet to redirect to your page instead of displaying "You don't have permissions" message.

if(!CheckSecurity(@$_SESSION["OwnerID"],"Search") && !CheckSecurity(@$_SESSION["OwnerID"],"Add"))

{

header("Location: http://www.yoursite.com/home.html");;

return;

}
kanso author 10/24/2005

Thank you.

I am learning.