PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Aug 15, 2020 2:13 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Oct 06, 2017 7:28 pm 
Offline
Forum Contributor

Joined: Wed Jan 18, 2017 4:43 pm
Posts: 197


Top
 Profile  
 
PostPosted: Fri Oct 06, 2017 8:17 pm 
Offline
Forum Regular
User avatar

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 539
Location: Victoria, BC
You might find and different idea faster and more in tune with your needs

JavaScript can deal with the client and cookies and PHP can handle the database

then use HTTP POST and HTTP GET is really simple to log in and carry on.

home page click logon, send the cookie to logon.php who then checks the hash with the database, returns home page or error.php

use a flow chart, makes your logic clearer


Top
 Profile  
 
PostPosted: Sat Oct 07, 2017 6:07 pm 
Offline
Forum Contributor

Joined: Wed Jan 18, 2017 4:43 pm
Posts: 197


Top
 Profile  
 
PostPosted: Sat Oct 07, 2017 6:10 pm 
Offline
Forum Contributor

Joined: Wed Jan 18, 2017 4:43 pm
Posts: 197
Does anyone have any clue why the login.php logs anyone in ?
My login.php actually works (the non PREP STMT or non-hacking prevention version). But as soon as I added the PREP STMT and hash I encounter problems now.


Top
 Profile  
 
PostPosted: Sat Oct 07, 2017 7:11 pm 
Offline
Forum Contributor

Joined: Wed Jan 18, 2017 4:43 pm
Posts: 197
I sorted the login.php problem.
Opening another thread and continuing the project there. This thread can now be closed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 50 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group