By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Session problem

P: n/a
HI,

I have created an application that has a logout.aspx page. here I clear the
session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old
pages.
How do i avoid this?

Please advice,
Stephen
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Using Vb.Net code-Behind

Response.Redirect("PageName.aspx")
or
Response.Redirect("http://www.sitename.com/pagename.aspx")
Also by using Post Back and Not Post Back your LogIn and LogOut page can be one in the same.
B

"Stephen" wrote:
HI,

I have created an application that has a logout.aspx page. here I clear the
session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old
pages.
How do i avoid this?

Please advice,
Stephen

Nov 20 '05 #2

P: n/a
They may be able to hit back and go to the old page, but they should no
longer be authenticated. So if they click on anything it should redirect
them back to your login.aspx page.

Make sure you calling FormsAuthentication.SignOut()

HTH,
Greg
"Stephen" <st*********@hotmail.com> wrote in message
news:ut**************@TK2MSFTNGP12.phx.gbl...
HI,

I have created an application that has a logout.aspx page. here I clear the session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old pages.
How do i avoid this?

Please advice,
Stephen

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.