php - Keep a user logged in -


i have server php , mysql. want have login screen users can enter email, etc. , browse site. best way keep user logged in? ie. don't have log in each page. have looked using cookies, , recording ip address, wasn't sure best, or if there better way?

you can create cookie based session, whenever user enters credentials. subsequent requests having cookie in request header, can used identify user.

link reference - http://www.opensourceforu.com/2008/12/session-management-using-php-part-1-cookie-based-sessions/


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -