How to redirect to home page, when user is changed
I am in a problem and I hope that you guys will help me out. I have a web app开发者_高级运维lication, in which when I once logged in then if I open the application in a new tab in redirects me to the home page(which shows after login). but when I logout from one tab and login with a different user then my previous tab should be redirected to the home page of current user(if I perform some activity on it)
please help me how do I achieve that..?
Thanks all
Just use Cookies
to map session
,It seems you are using some id in url to map it with session
you can use a small trick, place a label in your form and wrap it in timer and updatepanel now set the timer interval to 3000 and in the code behind set the user login and logout some variable and change the label text accordingly let say if 1 for loged 0 for logout so if its 1 nothing happens and if its 0 then redirect the page.
hope it gives you and idea.
精彩评论