Professional Web Applications Themes

How to create a login to users in PHP - Macromedia Exchange Dreamweaver Extensions

How to create a login for users to access their data, currently I can only see the first user everytime I login even with a different username. I know I need session stuff but don't know how to use, add or where to put them in. Thanks in advanced....

  1. #1

    Default How to create a login to users in PHP

    How to create a login for users to access their data, currently I can only see
    the first user everytime I login even with a different username. I know I
    need session stuff but don't know how to use, add or where to put them in.
    Thanks in advanced.

    Westmatrix99 Guest

  2. #2

    Default Re: How to create a login to users in PHP

    You should have your user info in a database. When the user logs in, check the
    username and password against what's in your database. If they don't match,
    provide an error. If they do match, you can assign the username to a session
    variable and display that on the page.

    Frank Grimes Guest

  3. #3

    Default Re: How to create a login to users in PHP

    Yes but how and where to put the sessions?
    Westmatrix99 Guest

  4. #4

    Default Re: How to create a login to users in PHP

    How and or where do I put those session variables; In the login page or other pages.
    I think "How to" is the big part for me, I am good in ASP but not that good in PHP.

    Please help...
    Westmatrix99 Guest

  5. #5

    Default Re: How to create a login to users in PHP

    I also am wrestling with the same problem. Session variables have not worked. I
    have determined that if the GET method is used, then the recordset of the users
    records are there. If the POST method is used, the recordset is blank. It
    appears to be something inherent in the Log In User behavior.
    I am trying to have a customer log in and then only see their particular
    inventory records. I do not want them be directed to a page with a listing of
    all the various customers and then select from that. Not suitable at all.
    If I find an answer, will let you know.
    Thanks and good luck,
    Dale :-)

    Dale 9999 Guest

  6. #6

    Default Re: How to create a login to users in PHP

    Hi

    Find this in your login page:

    session_register("MM_Username");

    and then add a session variable in MX called this:

    MM_Username

    then on any of your pages that calls from the database make sure that you use
    the = MM_Username and then you are all set; make sure that the tables have a
    field to reference the session variable MM_Username.

    Cheers
    Let me know if you come right!

    Westmatrix99 Guest

Similar Threads

  1. Login Will Not Work For New Users
    By ClayD in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 6th, 04:23 PM
  2. new users / records since last login?? - help needed..!
    By btn in forum Dreamweaver AppDev
    Replies: 1
    Last Post: March 31st, 03:21 AM
  3. Users login: Nested groups.
    By Tomas Martinez in forum ASP.NET Security
    Replies: 1
    Last Post: January 20th, 04:17 PM
  4. IIS sends login dialog for already authenticated users.
    By Sandy in forum ASP.NET Security
    Replies: 7
    Last Post: January 15th, 05:51 AM
  5. Replies: 3
    Last Post: July 19th, 02:29 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139