Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 12th, 2004, 04:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry to jump in now that you've got it working... BUT:

What's your error_reporting set to?

What's your session.save_path set to in PHP.ini? Does this directory exist? If so, does PHP have permission to write in it? If you look in this directory, do you see any session files in there? Does PHP have permission to read the files created there?


It shouldn't matter that PHP and Apache are installed on one drive and your website exists on another. The key is to make sure that your configuration files make sense for the setup you have.


Take care,

Nik
http://www.bigaction.org/
 
Old August 20th, 2004, 10:49 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use a similar database verification.
But the opasswords are stored in MD5 format (encrypted) and I then translate the entered password (MD5) against the already encrypted stored version. This is more secure than storing passwords in a readable format (depends on how secure you want your app).
If the user forgets their password they can request a temporary one auto-emailed to their login email address.


    // Setup query for username(email)/password check
    $dbquery = "SELECT id, uname, passwd, usergroup, userstatus
                FROM authuser
                WHERE uname = '$username'
                AND
                passwd = md5('$password')";

    $dbresult = mysql_query($dbquery);
    $num_result = mysql_num_rows($dbresult);
    if ($num_result == 0) {
        // If there are no results then they have failed the auth check!







Similar Threads
Thread Thread Starter Forum Replies Last Post
login script: user can't hit "return" for login dmerrill Java Basics 13 July 14th, 2006 07:25 PM
login verification katie456 Access ASP 3 October 16th, 2005 01:47 PM
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.