Class CookieInJar

java.lang.Object
   |
   +----CookieInJar

public class CookieInJar
extends Object
This class handles storing and deletion of cookies from database.


Variable Index

 o myCom

Constructor Index

 o CookieInJar()

Method Index

 o CookieDelete(String, String)
This method removes cookie from database corresponding to the user_id or the cookie itself.
 o CookieSave(String, String, int)
This method when called stores the cookie passed to it in the database along with the user_id and expiry time.

Variables

 o myCom
 public static Connection myCom

Constructors

 o CookieInJar
 public CookieInJar()

Methods

 o CookieSave
 public static void CookieSave(String u_id,
                               String cooki,
                               int exp_t) throws SQLException
This method when called stores the cookie passed to it in the database along with the user_id and expiry time.

 o CookieDelete
 public static void CookieDelete(String u_id,
                                 String cooki) throws SQLException
This method removes cookie from database corresponding to the user_id or the cookie itself.