Hello All,
I'm working on my first WAS website...I've learned a lot in the past few days, but something tells me I still have a very long way to go!
I have created a login page for my website that works exactly like the example given in the "Web_Applications_Demo" database.
The "log in" part works perfectly.
Once the user has successfully logged in, they are presented with my Client_Menu.a5w page.
I have a hyperlink on the Client_Menu.a5w page for the user to log off. This hyperlink is to an a5w page I have created and named "Logoff.a5w"
Logoff.a5w contains the following code...
===========CODE FOLLOWS=======================
"!doctype html public "-//w3c//dtd html 4.0 transitional//en""
"head"
"meta http-equiv=Content-type content="text/html; charset=unicode"""%a5
if eval_valid("session.FlagIsLoggedIn") = .t. then
session.FlagIsLoggedIn = .f.
'session.targetURL = request.request_uri
response.redirect("home.htm")
end
end if
session.FlagIsLoggedIn = .f.
%""meta content="MSHTML 6.00.2800.1400" name=GENERATOR""/head"
"body""/body"
======================END OF CODE====================
Using the a5w_info() function (thanks Lenny), I have confirmed that the value of session.FlagIsLoggedIn is in fact changed from true to false when the user clicks on the "log off" hyperlink, but...
The user can still navigate to the Client_Menu.a5w page without being redirected to the "Log In" page.
Where have I screwed this thing up?
Thanks for any assistance that can be offered,
Louis
I'm working on my first WAS website...I've learned a lot in the past few days, but something tells me I still have a very long way to go!
I have created a login page for my website that works exactly like the example given in the "Web_Applications_Demo" database.
The "log in" part works perfectly.
Once the user has successfully logged in, they are presented with my Client_Menu.a5w page.
I have a hyperlink on the Client_Menu.a5w page for the user to log off. This hyperlink is to an a5w page I have created and named "Logoff.a5w"
Logoff.a5w contains the following code...
===========CODE FOLLOWS=======================
"!doctype html public "-//w3c//dtd html 4.0 transitional//en""
"head"
"meta http-equiv=Content-type content="text/html; charset=unicode"""%a5
if eval_valid("session.FlagIsLoggedIn") = .t. then
session.FlagIsLoggedIn = .f.
'session.targetURL = request.request_uri
response.redirect("home.htm")
end
end if
session.FlagIsLoggedIn = .f.
%""meta content="MSHTML 6.00.2800.1400" name=GENERATOR""/head"
"body""/body"
======================END OF CODE====================
Using the a5w_info() function (thanks Lenny), I have confirmed that the value of session.FlagIsLoggedIn is in fact changed from true to false when the user clicks on the "log off" hyperlink, but...
The user can still navigate to the Client_Menu.a5w page without being redirected to the "Log In" page.
Where have I screwed this thing up?
Thanks for any assistance that can be offered,
Louis
Comment