need help with login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Alidad
Forum Commoner
Posts: 29
Joined: Thu Mar 29, 2007 12:42 pm

need help with login

Post 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
Gurzi
Forum Commoner
Posts: 27
Joined: Wed Aug 02, 2006 4:04 pm

Post 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
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Can you post what you have written so far please.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

redirect can be done by

Code: Select all

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