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:
- if want have person's username saved, should done solely session or cookie?
- what should have cookies disabled? should not store , have them log in each time?
thanks.
- 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.
- users cookies disabled can use sessions via
get
variable. session id passed server via url.
see how cookies , sessions work? more information.
Comments
Post a Comment