open() $isActive public void destroy() destroySession() 公共 方法 Session destroy handler. This method should be overridden if $useCustomStorage returns true. public boolean destroySession($id) $id string Session ID return boolean Whether session is destroyed successfully freeze() 受保护 方法...
== 'destroy' && options.unset !== 'keep') { throw new TypeError('unset option must be "destroy" or "keep"'); } // TODO: switch to "destroy" on next major var unsetDestroy = options.unset === 'destroy'; // determine if session should be destroyed //sessionID还存在,但是...
This required method is used to destroy/delete a session from the store given a session ID (sid). Thecallbackshould be called ascallback(error)once the session is destroyed. #store.clear(callback) callback{Function}Arguments: error{Error}Errorobject. ...
HttpSessionEvent event=newHttpSessionEvent(getSession());for(inti = 0; i < listeners.length; i++) {//3、判断是否为 HttpSessionListener,不是则继续循环//4、向容器发出Destory事件,并调用 HttpSessionListener.sessionDestroyed() 进行通知context.fireContainerEvent("beforeSessionDestroyed", listener); lis...
Control the result of unsettingreq.session(throughdelete, setting tonull, etc.). The default value is'keep'. 'destroy'The session will be destroyed (deleted) when the response ends. 'keep'The session in the store will be kept, but modifications made during the request are ignored and not ...
logger.debug("Publishing SessionDestroyedEvent for session "+ sessionId); }cleanupPrincipalIndex(session);// 发布Session delete事件if(isDeleted) {handleDeleted(session); }else{// 否则发布Session expire事件handleExpired(session); } } } }
public void sessionDestroyed(HttpSessionEvent event) { HttpSession session = event.getSession(); Map httpSessionToFlexSessionMap = getHttpSessionToFlexSessionMap(session); HttpFlexSession flexSession = (HttpFlexSession)httpSessionToFlexSessionMap.remove(session.getId()); ...
public boolean destroySession(string $id) $id string session ID {return} boolean whether session is destroyed successfullySession destroy handler. This method should be overridden if useCustomStorage is set true. Do not call this method directly.gcSession() 方法 ...
(log.isDebugEnabled())log.debug("Start expire sessions "+getName()+" at "+timeNow+" sessioncount "+sessions.length);for(int i=0;i<sessions.length;i++){// 事实上后台任务也是调用 isValid() 方法 进行过期任务清理的 if (sessions[i]!=null && !sessions[i].isValid()) { expireHere++;...
$useCookiesboolean|nullThe value indicating whether cookies should be used to store session IDs.yii\web\Session $useCustomStoragebooleanWhether to use custom storage.yii\redis\Session $useTransparentSessionIDbooleanWhether transparent sid support is enabled or not, defaults to false.yii\web\Session ...