php - Saving data for those with cookies disabled -


i've got website login feature, , i'm storing person's username cookie.

i've got few questions:

  1. if want have person's username saved, should done solely session or cookie?
  2. what should have cookies disabled? should not store , have them log in each time?

thanks.

  1. a user's details should saved in session. session variables stored on server, , session id exposed user. use cookies preserve login state on long time. make sure securely.
  2. users cookies disabled can use sessions via get variable. session id passed server via url.

see how cookies , sessions work? more information.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -