Topic: Remember doesnt seem to remember (Read 961 times)
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« on: Oct 12, 2009, 09:34:45 pm »
I have started to look at using PHP userClass for my web application. So far things work good. I have noticed that using example1.php the "remember me" does not seem to work. If a get what remember me means: I login at example1.php, then i close the browser(quit), then restart the browser, navigate back to example1.php it should not ask for a login because is should remember me, but it asks to login again. it has not remembered me. Is there extra code that I would need to add to properly integrate "remember me"?
have I gotten the concept of "remember me" wrong?
thanks. -ChazZ
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #1 on: Oct 12, 2009, 09:39:24 pm »
This probably is a problem because you are using the site in localhost(it's a security limitation of the web browser). It should work on a production server on a real domain.
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #2 on: Oct 12, 2009, 09:50:36 pm »
Thanks for the tip, i was unaware of that limitation. A simple fix would be to point a "testdomain.com" to localhost(127.0.1.1) or something in the local machine's hosts file and navigate that way rather than using localhost.
thank you.
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #3 on: Oct 12, 2009, 10:13:03 pm »
on a side note, the logout() was not logging me out after i had checked the "remember me" box. so i had to tack on a little extra " '/', $this->remCookieDomain" to the end of the setcookie() call in the logout function. (using php 5.2.6).