Session API

Cookie:

public String getComment()
public void setComment(String comment)
public int getVesion()
public void setVersion(int version)
public String getDomain() 
public void setDomain(String domainPattern)
pubic int getMaxAge() 
public void setManAge(int lifetime)
public String getName() 
pubic void setName(String cookieName)
public String getValue() 
public void setValue(String cookieValue)
public String getPath()
public void setPath(String path)
public boolean getSecure() 
public void setSecure(boolean secureFlag)

HttpSession:

 
public Object getAttribute(String name)    
pulbic Object getValue(String name)(不赞成)    
public void setAttribute(String name,Object value)    
public void putValue(String name,Object value)    
public void removeAttribute(String name)    
public void removeValue(String name)    
public Enumeration getAttributeNames()    
public String[] getValueNames()    
public String getId()    
public boolean isNew()    
public long getCreationTime()    
public long getLastAccessedTime()    
public int getMaxInactiveInterval()    
public void setMaxInactiveInterval()    
public void invalidate()  

posted @ 2009-05-08 09:25  翔宇编程  阅读(525)  评论(0编辑  收藏  举报
51CTO