PHP User Authentication

  • ackehallgren
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 5
  • Status: Offline

Post February 8th, 2004, 11:38 am

Hi...
I need some help with a login code, and all i want is to be able to have a username and a password... only one...

If you write the right username and password, u come to one site,
and if u write the wrong u come to another,,, thats it!

Is this possible?
Please help me fast...
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 8th, 2004, 11:38 am

  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post February 8th, 2004, 11:49 am

Sure it's possible, in what language is this to be written? Client-side JavaScript? Server-side PHP? What?
  • ackehallgren
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 5
  • Status: Offline

Post February 8th, 2004, 11:50 am

javascript... or php... doesnt matter
  • ackehallgren
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 5
  • Status: Offline

Post February 8th, 2004, 11:51 am

Or... take javascript
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post February 8th, 2004, 12:06 pm

With JavaScript, it's gonna be pretty impossible to do and keep it secure. JavaScript is client-side, so one way or another, the browser's web client is gonna have to be able to see the real password to see if what was typed in locally matches.

You're probably going to want to go server-side with this (PHP, Perl, etc.) if you want to keep it secure.
  • ackehallgren
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 5
  • Status: Offline

Post February 8th, 2004, 12:06 pm

ok... php than...
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post February 8th, 2004, 12:09 pm

There's some good links on this one here

That first link to zend.com is a great tutorial.
  • ackehallgren
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 08, 2004
  • Posts: 5
  • Status: Offline

Post February 8th, 2004, 12:11 pm

the problem is these are to advanced...
can you like... make or show me one where i just change username, password and the links?
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post February 8th, 2004, 12:13 pm

Trust me, that first tutorial on the Zend site is probably the most basic form of user authentication out there.

If you can't write something based off that, you might want to look into pre-written scripts at HotScripts.com or something.
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Joined: Jan 25, 2004
  • Posts: 776
  • Loc: Nippon
  • Status: Offline

Post February 9th, 2004, 12:08 am

You're going to have to at least know a little about database management (making tables, running queries, etc). If I were you I'd try to read up on it a bit before running something somebody else made. You're doing this for security reasons, right? Why run something that you don't know is secure or not.

This stuff isn't so tricky. You should only have to spend a few days in the books to figure it out.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 80 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.