PHP Scripts Development » PHP Classes Support Forum » Access_user Class Support forum

login works very strangely...

(5 posts)
  • Started 1 month ago by stevepofd
  • Latest reply from stevepofd

Great offers not only for geeks!


  1. hello,
    i first wanted to say good work with everything, everything is very cleary laid out and easy to modify with my necessary changes.

    however, i am having one (big) problem. i can log in as some users just fine and everything works great. but with others, if i log in sometimes when i try to edit profile information it loads the information from the previous person logged in! it doesnt seem like it should be possible, and i traced back through and everything that clears out the session is correctly. anyway, then there are some users, that when i try to log in will let me log in but when i try to access the profile updating page it wont let me access it sending me back to the login page. (and i do not have a higher access level on the account modification pages.) everything for the most past is how you showed it in the example files.

    also, to note, i could not get the mysql sessions to work on my host, so i have the define("USE_MYSQL_SESSIONS", false); set like this.

    any help would be great, if i have to go back to groundzero i'll be super behind on this project.

    for seeing the errors try using these logins:
    http://www.progressofdesign.com/clients/saveourwomen/my_account.php
    1. user: test01
    pass: dance

    2. user: tedpofd
    pass: rock

    (you'll notice if you try to access with user 2, it will allow you to update the profile, but it queries data from the wrong user!)

    Posted 1 month ago #
  2. Hi I think it need to be related to un-destroyed sessions. T est always with 2 different browsers (like on the internet two different users). I think this would only happen while testing the application

    Posted 1 month ago #
  3. thanks for the quick reply, and yes i do test with 2 browsers always. i think you may be right on the sessions as i am using sessions to control other parts of the site, so i will look into those to see if they conflict each other. but one thing i noted was that even on a different computer that has never accessed the site before, it will still load the wrong user information. and as well some users can never login, or will be randomly logged out (not including my servers automatic session destroy).

    Posted 1 month ago #
  4. This is really strange, do you tried the script on some other server?

    I use the script on some site with 2000+ members and never noticed these problems.

    Posted 1 month ago #
  5. yeah its is incredibly strange. i havent tried it on another server yet. but i have tried loading your original code, and that works fine. so i thought i'd restore everything in my files. so i took out all of my sessions and reworked everything to just utilize your original script. result? strange things still. i'm not sure if it has something to do with cookies or sessions or what.
    i printed out the sessions variables on some pages to see if i could get to the bottom of it, and i think you can see too (i mean if you try) if you have never been to the page before click on my account
    user: radman
    pass: test

    after logged in go to the page about us magically it will show you a $_session[user] of stevepofd even though you have never logged in with it.

    it leads me to think it is something on my server. but if that is the case why wouldnt it do it on your original pages?
    if you wanna check that go here: http://www.progressofdesign.com/newaccess/login.php
    accounts could be:
    user: radman
    pass: test

    or
    user: stevepofd
    pass: rock

    i really appreciate your quick responses, i hope you may have some advice. i would really love to use your classes especially since i developed the rest of the site around it's variables (not knowing that i'd have there problems ;) )

    thanks again in advance for your wisdom...

    take care,
    steve

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.