mysql - how can i get variables after login without using session in php? -


i made login system using php connected mysql database, how can make show username after login, goes on main login screen -> database check -> success page. without using session on success page how can show username, registered?

so, said:

how can show username, registered?

in other word, need username displayed correct password, whatever user logged-in , right?

so process

login screen -> submit -> save username in cookie -> db check, password correct -> fetch user full name , return html

login screen -> submit -> save username in cookie -> db check, password wrong -> show error.

i think fit request :

display username

in fact, the user not in "logged-in" status, therefore, user can nothing identity

if first few homework in "web programming 101", may save username in cookie when login succeed. read username value cookie identify user made request. but that's nightmare security, kid can hack system

if hate build-in session of php, may deploy own session management tool. , in case, won't more secure build-in one, when not experienced in cyber security.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -