Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP Remember Me?

Explorer ,
Jun 13, 2012 Jun 13, 2012

I accidently posted this in the plain Dreamweaver forum.. forgive me.  I'm looking for a way to enhance the current DW CS5 PHP login authorization scripting to be a "remember me" feature as well...  pointers!?

TOPICS
Server side applications
976
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2012 Jun 14, 2012

So you are looking at how to implement cookies.  This tutorial should give you a basic overview.

http://www.tizag.com/phpT/phpcookies.php

If you are farther along than that and need specific help with your system, we may need to see the code you have.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2012 Jun 14, 2012
LATEST

I don't know of any extensions, but here's how I did it many moons ago. For each user account, in addition to the login credentials I also create a random passkey. If they user selects the "Remember Me" checkbox, I store the user login and passkey cookies. When the user accesses a restricted page, I check if those cookies are set and if so, I compare the database passkey to the cookie value. I felt that was safer than merely checking a "remember me" boolean value. Maybe this is overkill but it felt safer to me. I also do not want to store the users regular password in a cookie.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines