Tomcat starts from scratch (12) the first part of the Session

Source: Internet
Author: User

public interface Session {        public static final String SESSION_CREATED_EVENT = "createSession";        public static final String SESSION_DESTROYED_EVENT = "destroySession";        public String getAuthType();        public void setAuthType(String authType);        public long getCreationTime();        public void setCreationTime(long time);        public String getId();        public void setId(String id);        public String getInfo();        public long getLastAccessedTime();        public Manager getManager();        public void setManager(Manager manager);        public int getMaxInactiveInterval();        public void setMaxInactiveInterval(int interval);        public void setNew(boolean isNew);        public Principal getPrincipal();        public void setPrincipal(Principal principal);        public HttpSession getSession();        public void setValid(boolean isValid);        public boolean isValid();        public void access();        public void addSessionListener(SessionListener listener);        public void expire();        public Object getNote(String name);        public Iterator getNoteNames();        public void recycle();        public void removeNote(String name);        public void removeSessionListener(SessionListener listener);        public void setNote(String name, Object value);}

 

(2) Delete the session from the manager.
(3) Delete the data stored in the session
(4) Check the parameters to determine whether to trigger some events.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.