Package org.directwebremoting

Examples of org.directwebremoting.ScriptSession.invalidate()


             public void sessionCreated(ScriptSessionEvent event) { 
                     ScriptSession scriptSession = event.getSession(); // ��ȡ�´�����SS 
                     HttpSession httpSession  = WebContextFactory.get().getSession();// ��ȡ����SS���û���HttpSession 
                     User user = (User)httpSession.getAttribute(SESSION_USER)
                     if(user ==null){ 
                             scriptSession.invalidate()
                             httpSession.invalidate()
                             return
                    
                     String ssId = (String) httpSession.getAttribute(SS_ID)
                     if (ssId != null) { 
View Full Code Here


    {
        WebContext wctx = WebContextFactory.get();
        ScriptSession scriptSession = wctx.getScriptSession();

        log.debug("pageUnloaded is invalidating scriptSession: " + scriptSession);
        scriptSession.invalidate();
    }

    /**
     * Used by reverse ajax proxies to send data back to the server
     * @param key The unique id under which a callback is registered
View Full Code Here

        {
            long now = System.currentTimeMillis();
            if (now > lastAccess + actionTimeoutMillis)
            {
                session.addScript(new ScriptBuffer(onTimeout));
                session.invalidate();
                throw new DwrConvertedException("Your session has timed out");
            }
        }

        Object reply = chain.doFilter(obj, method, params);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.