cookie « Security « JSP-Servlet Q&A

1. Logout user by deleting cookie

public void Cookie.setMaxAge(int expiry) Specifies the maximum age of the cookie in seconds before it expires. A negative value ( -1 ) indicates the default, that the cookie should expire when the browser exits. A zero ( 0 ) value tells the browser to delete the cookie immediately. you can do one thing that on click of button , you can ...

2. logout cookie problem

4. authentication with cookies

5. Help for logout and cookie

Hi!:) ... I'm new to the forum and I hope to put this thread in the right section! I have to make a simple web application that is able to handle the log-in and log-off of a user, displaying a form of log-in if the user not 'authenticated, the home page and if'. Constraints of creation: - Use cookies to maintain ...