@mstnorris For remember me feature, Laravel have it out of the box.
for present them with their username/profile photo but require that they retype their password to log in You cannot do it with sessions as sessions expire on the termination of the browser window. You can do it in multiple ways though:
- Keep track of IP address by storing the session. And then on every request check if there is a session from the IP and then display the name from that stored session.
Note:You will have to figure out the way to get the internal IP address for wifi connections as, all the users connected to a router will have same IP address.
- You can store cookies on the users browser which will have details of last login person.
Note:If user deletes the cookies or cookies are disabled on the browser it wont work.
for public computer option, its really very simple.
Suppose you have a check box at the login page for public computer if the check box is checked then just store the value in the session. And at the session termination check if the value is set in session, and if it is set then destroy all the cookies and other stuff you want to.