Forums

This topic is locked

Simple Authentication Help Requested

Posted 04 Mar 2003 19:15:09
1
has voted
04 Mar 2003 19:15:09 Stan Monroe posted:
I am looking for a simple approach to allow me to control access to certain pages and directories of my web site. I have seen a few tutorials using ASP.Net and SQL and they are a bit over my head at this time. Maybe it looks worse then it really is. I plan to have a limited number of users (5-10) so I could even hand code there access information but I am willing to use ASP.Net/SQL if it is really the better way to go. Can anyone point in the right direction to information on where to begin? Thanks...Stan

Replies

Replied 04 Mar 2003 19:32:01
04 Mar 2003 19:32:01 johan tessens replied:
do U use DreamweaverMX or UD?
If you do, you can use the server behavior - User Authentication.
Replied 05 Mar 2003 16:28:00
05 Mar 2003 16:28:00 Ruskin Spiers replied:
you can just use session variables, set the session variable when the user logs in, or, if they don't login give them a url which is unlikely to get used by unauthorised visitors, and set the session variable on that page. Then at the top of every restricted page have an include file which includes the following:

if session("[yourvariable]" ="" then response.redirect "[a_page_to_say_noy_logged_in]"

remember to include response.buffer=true at the top of each page before the include file i.e:

<% @language=vbscript %>
<% response.buffer=true%>
then the include file

Replied 17 Mar 2003 18:41:41
17 Mar 2003 18:41:41 Stan Monroe replied:
Thanks for the suggestion. I have gone down the ASP road with Server Behaviors and have run into problems. See separate posting.

Reply to this topic