|Should be simple edit
|Page 1 of 1|
|Author:||Vigilante [ 18 Jun 2005, 16:11 ]|
|Post subject:||Should be simple edit|
Hi, I realize there are a lot of people with issues to work on but hopefully mine is real simple, thanks for your help.
I have it installed and it all works great. Very easy and simple script by the way, thank you!
On my "secure" page, which is just one simple php page to edit a sqlite db. When they click the logout button, I can have it redirect to index, or my admin page. Which is fine. But when they log out, it goes to the username/password page, rather then the main page.
Like if logout goes to index.php?logout=1 then this url is in the address bar and it sits at the user/pass box. But I don't want that, I want it to log out, but go to just index.php and view the actual page.
Users do NOT require authentication to view index.php. So I set the variable $slogin_noauthpage = 1;. However, instead of showing index.php it shows login box. If it erase "?logout=1" from the address bar, the page works fine.
How can I edit the script so when they logout it just goes to index.php and not login box?
Thanks a bunch
|Author:||victoria [ 20 Jun 2005, 08:56 ]|
|Post subject:||Logout redirecting|
I also was wanting to redirect my logout to my home page url and not sure how to do this.
|Author:||Vigilante [ 20 Jun 2005, 12:23 ]|
|Post subject:||Quick Fix|
I created a little hack to make it do what I want. This may work for you too until a more suitable fix presents itself.
Create a new file in the same directory as your logout page, or wherever I guess, called "logout.php". Then put this code:
$slogin_noauthpage = 1;
<META NAME="Robots" CONTENT="NOINDEX">
<meta http-equiv="refresh" content="3; URL=index.php">
location.href = 'index.php';
You are logged out<br /><br />
Page will refresh automatically
Save this file. Then for your logout links, have it go to this page, mine looks like this:
You can change the paths if needed of course.
Also inside logout.php change the path for the include as well.
Hope that works for now!
|Page 1 of 1||All times are UTC - 7 hours|
|Powered by phpBB® Forum Software © phpBB Group