Is there any way you can not close the current browser under the premise of what method to call delete current browser Session?
seek god pointing
---- - Solution --------------------------------------------
Why not clear the session value ?
------ Solution ---------------------------------------- ----
session.invalidate ()
------ Solution ---------------------------- ----------------
session.invalidate () is to let SESSION lapse.
or getAttributeNames to get all the attribute names , and then removeAttribute
------ Solution ------------------- -------------------------
request.getSession (). invalidate (); destroys the session can be a
- ---- Solution -------------------------------------------- < br> you want to clear the client or server side ? client , then , need to see achieved, is generally achieved through the cookie , then you delete the cookie like
------ Solution ----- ---------------------------------------
session data directly deposited inside your set to empty ...
------ Solution ---------------------------------- ----------
session.invalidate ()
------ Solution ---------------------- ----------------------
close your browser session nor destroyed but you can not find the id of the
- ---- Solution -------------------------------------------- < br>
Brother record the password function is a cookie
------ Solution -------------------------- ------------------
Brother record the password function is a cookie
cookie is a file locally , has a unique id, but the service side of the id how to judge whether the right thing to do ?
depending on what you think ? Not simply record the password can be solved only cookie feature . .
------ Solution ------------------------------------ --------
Here is another reference to the landlord 's :
fifteen , session will be deleted by
********************************************** **************************************
session is deleted in the following circumstances :
A. Program calls HttpSession.invalidate ()
B. Received from the last session id sent by the client session interval exceeds the maximum effective time
C. Server process is stopped
Note again closes the browser will only stored in the client browser session cookie memory failure , does not make the server-side session object lapse, except this time Server side just invalidate the session time is up .
------ Solution ---------------------------------------- ----
session.invalidate();
------ Solution ------------------------------ --------------
request.getSession (). invalidate ();
------ Solution ------------- -------------------------------
set session time , time is too short is very good
- ----- For reference only ---------------------------------------
how emptied ?
------ For reference only -------------------------------------- -
Session.remove ....
------ For reference only --------------------------- ------------
session object is not actually destroyed in the service ( passive ) to empty data is
------ For reference only --- ------------------------------------
invalidate () method know, but is not specific usage also understand that you great God, just starting , there are examples it ? Posted some concrete application of the code to see what could ?
------ For reference only -------------------------------------- -
Results posted after the National Day , I hope there god paste some code up .
------ For reference only -------------------------------------- -
close your browser session will not destroy it ?
Or how those records password function to achieve ?
Also you referring only destroys the session in the browser or server ?
------ For reference only -------------------------------------- -
Brother record the password function is a cookie
cookie is a file locally , has a unique id, but the service side of the id how to judge whether the right thing to do ?
depending on what you think ? Not simply record the password can be solved only cookie feature . .
------ For reference only ---------------------------------------
has been resolved : that use session. invalidata (), methods to get, thank you for the replies, knot placement points.
没有评论:
发表评论