//Logout.java
//Responsible for logging the person out
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class Logout extends HttpServlet
{
	private HttpSession session = null;
	private Connection conn = null;
	
	public void doGet (HttpServletRequest req, HttpServletResponse res)
		throws ServletException, IOException
	{
		PrintWriter out = res.getWriter();
		res.setContentType ("text/html");
		try
		{
//			session = req.getSession (false);
//			session.invalidate();
			out.println ("<html><head><title>You have been Logged out!!!</title></head>"+
				"<body><h2>You have been logged out successfully</h2></body></html>");
		}
		catch (Exception e)
		{
			out.println (e);
		}
	}
}
