G
Geoff Wickens
I am amazed at how much help I have had in creating my first asp based
website from this forum. There are obviously a significant number of real
experts who are happy to take the time to help us novices. My site which now
does what it aims to would not be working without this assistance and I am
extremely grateful. Long may it continue!!!!!
My next problem is as below:
I have created a website where various categories of users can log on to get
at secure pages. I do this by checking usernames and passwords against a
list in a database and set session("loginadmin")=true or
session("loginctte")=true depending on what category is stored in my
database. On the secure pages I now want to put a log off button and am
interested to know what code I need.
Currently I have created a form and this calls a page (logouthandler.asp).
The code on this page is
<%
session("loginadmin")=false
session("loginctte")=false
response.redirect ("../index.asp")
%>
Does this do anything worthwile and is anything else recommended?
Geoff Wickens
website from this forum. There are obviously a significant number of real
experts who are happy to take the time to help us novices. My site which now
does what it aims to would not be working without this assistance and I am
extremely grateful. Long may it continue!!!!!
My next problem is as below:
I have created a website where various categories of users can log on to get
at secure pages. I do this by checking usernames and passwords against a
list in a database and set session("loginadmin")=true or
session("loginctte")=true depending on what category is stored in my
database. On the secure pages I now want to put a log off button and am
interested to know what code I need.
Currently I have created a form and this calls a page (logouthandler.asp).
The code on this page is
<%
session("loginadmin")=false
session("loginctte")=false
response.redirect ("../index.asp")
%>
Does this do anything worthwile and is anything else recommended?
Geoff Wickens