Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all
i have a page after login page , this page can open more than another pages .
i want to when i logout from anyone , the rest feel that process an dgo to the default page.
how can i do that please, in js??

Thanks
Posted
Comments
sriman.ch 16-Jan-12 6:17am    
What do you mean by "this page can open more than another pages" ? You mean to say multiple tabs or what ? Be clear and specific to your question....
moon2011 16-Jan-12 6:19am    
yes, i mean that it can open more than one window from it.

is it clear enough??

 
Share this answer
 
v3
All you need is clear the cache, that's all. Check this nice Tip/Trick
Browser back button issue after logout[^]
 
Share this answer
 
Logging out will already invalidate the session (i.e. any future requests will fail to authenticate and get redirected appropriately). If you want them to notice quickly, you can have an AJAX ping requester which just returns whether the session is still valid, and a response handler that reroutes the page if not.

Be aware, though, that this will (i) be annoying to users who may want to still copy or view information even after the session expires, and (ii) cause more server request hits (even if the request itself is trivial).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900