Page 1 of 1

need help with login

Posted: Sat Apr 14, 2007 11:11 am
by Alidad
HI, I really need your help to write code for me. I have tried that myself it won't work. I guess I'm still rookie...

I have install phpbb and works great, but if i want to log in from "login.php" and redirect to "index.php" where it will say "welcome user name".

but also want automatic log in for phpbb in "forum.php" too with out re-asking for log in again, so I assume that is must be using session variable or cookie and i have tried both is not working right.

I would appreication if you could provide me code's for log in and redirect to index. php page and autoamtic log in forums please. thanks.

AM

Posted: Sat Apr 14, 2007 7:16 pm
by Gurzi
i would like to help you, but here in Portugal we dont give the fish, we teach how to get the fish..

So if you want help, you have to show some effort

Posted: Sun Apr 15, 2007 3:10 am
by Ollie Saunders
Gurzi put it blunty but yeah, we won't give you code here as the main purpose of the forum is to teach you stuff.

You should probably investigate HTTP authenication with Apache because this may well be easier and more secure for you, also it involves no PHP.

Posted: Sun Apr 15, 2007 3:35 am
by Benjamin
Can you post what you have written so far please.

Posted: Sun Apr 15, 2007 3:03 pm
by tecktalkcm0391
redirect can be done by

Code: Select all

header("Location: ....");
try google for some answers :wink: