I have a login screen and i am authenticating users by checking credentials from database. But how can i implement Remember me check box? Like in gmail remember me(stay signed in) is present. I am using sign.jsp and Auth servlet (doPost) and oracle 10g ee for authentication.
I have a login screen and i am authenticating users by checking credentials from
Share
You can use
cookiesfor this purpose.In your servlet response handler (doPost, doGet etc.) create a cookie in the following way –
To read them, you can use something like this –
Here is the official documentation for the
Cookieclass.