Categorized | News

PHP Auto Login

Posted on 22 October 2002 by Demian Turner

From Zend
Setting cookie that is valid for a long term is not secure. I prefer to use
“session cookie” for login session management.  Session cookie is cookie that
does not have expiration time. Session cookie is stored in memory in most of
browsers and deleted when user closes browser.

Here is tip to implement auto login feature with secure manner.

Bookmark and Share

3 Comments For This Post

  1. beethai Says:

    I was wondering what the different between
    REQUEST_URI and HTTP_REFERER is ?

    Why is HTTP_REFERER unreliabe?

  2. demian Says:

    i slapped that into google (as you probably did yourself) and sure enough the 2nd result in the list had a clear answer to your question.

    try this page:

    http://shat.net/php/404/404Handler.php.txt

    and search for the function \"send_email()\" to see how this author uses each uniquely.

  3. anonymous Says:

    source: http://www.zend.com/tips/tips.php?id=225&single=1

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook