Can someone please help with this problem?
Go to
www.votawtool.com and use "12345" to test the situation below. (without the quotes)
In the upper right is a text box for dealer login. When the dealer enters their account number, discount pricing is "turned on" and recorded in session variables. Then the line, "Dealer Net Pricing is turned on. Turn off", is shown in place of the login text box. The following is used to show/hide this:
If session("dealer")="true" Then
show the line
Else
show the login form
End if
When someone clicks "turn off", the page goes to a logout page with the following:
session("dealer") = ""
session.abandon
response.cookies("dealer") = ""
strURL = Request.ServerVariables("HTTP_REFERER")
Response.Redirect strURL
So, the session is abandoned, and then the person is redirected back to the page they were on and the login text box once again shows on that page.
HOWEVER, the problem comes in when they go to another page after logging in or out. It does not show the new state of session("dealer"), i.e. the login form shows when the "Dealer Net Pricing is turned on. Turn off" should show and vice versa.
How do I get this sorted out? I've tried auto refreshing the page by putting meta tags in the <head> ------
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
but it still isn't working. (The "about us" page currently has the meta tags)
Can anyone offer a suggestion?
Thanks,
Mickey