Hi all,
I am creating a Cookie inside a
servlet based on the user info i.e. user name and password.
However i am storing the cookie information inside the text File instead of the database.
So, when the tries to hit the URL again ,then basically i check for the cookie name and if that cookie is already present then the user is not shown the login page again and is signed in without filling the user info again.
My question is :-
1) Is that the correct approach for achieving this functionality ?
2) When should i delete the cookies inside the text file?