SitePoint Sponsor

User Tag List

Page 3 of 3 FirstFirst 123
Results 51 to 59 of 59

Thread: Login

  1. #51
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah, I will fix that
    You might want to make a note to stop using md5() at some point in the future as it's not as hard to reverse as you might think But it does the job in most cases.

  2. #52
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ALTER TABLE demiur_helpdesk CHANGE pass pass CHAR( 32 )

  3. #53
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nvm. GOt it.

  4. #54
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh boy! NOW it works! I just get this one error, here is the output of that verification code you gave me to protect those pages.

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/demiur/public_html/demo/helpdesk/index2.php:10) in /home/demiur/public_html/demo/helpdesk/index2.php on line 20

  5. #55
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe delete the session_start()?

  6. #56
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. Now i get a new error.

    Warning: Cannot modify header information - headers already sent by (output started at /home/demiur/public_html/demo/helpdesk/index2.php:10) in /home/demiur/public_html/demo/helpdesk/index2.php on line 24

  7. #57
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The 'protect page' code has to go at the very top of the file .. the very first lines.
    Are you sure you want to protect index2.php as that's where you redirect to if a user isn't logged in, that's gonna cause a redirect loop. You only put the protect code at the top of the actual files to protect.

  8. #58
    designer
    Join Date
    Dec 2004
    Location
    Over the hill and through the woods...
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ha! Everything works now! Thank you so much for everything.

  9. #59
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •