php - Persisting Authentication Across keep-alive Connection -


currently on website when user logged in, every webpage request have go database , check cookie confirm are, doing across keep-alive connections waste because connection authenticated, how can i, using php and/or apache, persist authentication across keep-alive connection? not possible?

just check cookie enter site connection database,

if checking ok: create session cookie unique encryption exemple

md5("name"."pass".time())) 

you using sql once per session ;)


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -