RE: login application help requested

2000-03-30 Thread Olive, Christopher M Mr USACHPPM

it looks like you need to overhaul the thought process here.

what i do for the protected pages on my site is have a custom tag call at
the beginning of each protected page.  this is a simple check for a cookie i
have set (userid).  if it's not there, then in the tag i redirect them to
the login page, with the page they attempted to reach as a URL variable.

Thusly...







login form (username password)
hidden field with URL.loc in it.


check their login.
if valid, send them to FORM.loc.
if not, error message.

if you need more, let me know.

Chris Olive
DOHRS Website Administrator
[EMAIL PROTECTED]


-Original Message-
From: Chris Estes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 5:24 PM
To: '[EMAIL PROTECTED]'
Subject: login application help requested


I have a home page in which there are links both for public and private
pages. I want users with a password to be able to click on a private page
link, login, then be forwarded directly to that page. It is easy enough to
send them to a specific page, but I can't seem to "forward" them. This code
takes the user back to the login form.

The code I'm using is very simple and basic (which is probably the problem).
I've included it below. If anyone can help, I'd appreciate it. I've wasted
two days of my life working on this.


Application.cfm:
 










http://localhost/isri/login/formpage.cfm?dest=#cgi.path_info#"
addtoken="No">
  



 





Formpage.cfm:




Password:


 


Actionpage.cfm:

SELECT username, pwd
FROM login
WHERE username = '#Form.name#' AND pwd = '#form.password#'




Log In





 
 


alert("We're sorry, but we were unable to verify either your Name or
Password. Please try again.")
self.location = 'formpage.cfm'






Chris Estes
(202) 662-8536
[EMAIL PROTECTED]
http://www.isri.org
http://www.scrap.org


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: login application help requested

2000-03-29 Thread John Quarto-vonTivadar

what about something a little easier, given that all times after the first
time will the SESSION.LoggedIn be true:







the binary operation is surely faster than the IsDefined() function, yes? :)

the other comment that it has to be part of an application.cfm is right, or
at least an application.cfm equivalent (such as FuseBox's app_globals.cfm),
and obviously you have to have used the  tag to allow for
SESSION variables in the first place :)

you could also put any gross application 's within this loop too,
thereby only having to set them once. (most people just put the 's in
the application.cfm with no loop and so they get set and reset and reset
everytime a page is called. For a high volume site obviously this makes a
difference). Even in a non-high volume site it makes some difference. we had
a site where only 1 or 2 people were logged in at once and not a heck of a
lot of DB queries being done. In hitting the pages many times in a row, we
noticed a 3-4% increase in speed by wrapping the 20-25 's inside such
a loop. Although not scientific, I daresay to guess at least that savings
would occur in a high-traffic site, perhaps substantially higher depending
on what you do (or in this case, don't do) outside the loop.



> You will never get out of that loop.
>
> First time in,
>
> 
> 
> 
>
> this isnt defined, so you show login page then you submit to page to
autheticate, but the application.cfm is run before that page as well.
>
> What you could do is include your authentication in the app.cfm
>
> Check there if good they are in if not send back.
>


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: login application help requested

2000-03-29 Thread Brian Peddle

You will never get out of that loop.

First time in, 





this isnt defined, so you show login page then you submit to page to autheticate, but 
the application.cfm is run before that page as well.

What you could do is include your authentication in the app.cfm

Check there if good they are in if not send back.


-Original Message-
From: Chris Estes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 March 2000 8:24 AM
To: '[EMAIL PROTECTED]'
Subject: login application help requested


I have a home page in which there are links both for public and private
pages. I want users with a password to be able to click on a private page
link, login, then be forwarded directly to that page. It is easy enough to
send them to a specific page, but I can't seem to "forward" them. This code
takes the user back to the login form.

The code I'm using is very simple and basic (which is probably the problem).
I've included it below. If anyone can help, I'd appreciate it. I've wasted
two days of my life working on this.


Application.cfm:











http://localhost/isri/login/formpage.cfm?dest=#cgi.path_info#"
addtoken="No">
 



 





Formpage.cfm:




Password:


 


Actionpage.cfm:

SELECT username, pwd
FROM login
WHERE username = '#Form.name#' AND pwd = '#form.password#'




Log In





 
 


alert("We're sorry, but we were unable to verify either your Name or
Password. Please try again.")
self.location = 'formpage.cfm'






Chris Estes
(202) 662-8536
[EMAIL PROTECTED]
http://www.isri.org
http://www.scrap.org


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: login application help requested

2000-03-29 Thread Peter Tilbrook

I have a very customisable application that might interest you (I use it for
extranets, eg: http://www.abcb.gov.au/members/).

Email me back for the code.

Cheers!

==
Peter Tilbrook (ICQ: 666275)
Internet Applications Developer
SafetyWeb Internet Solutions
31-37 Townshend Street
Phillip, ACT, 2606

Phone: (02) 6273 9901
Fax: (02) 6273 9902
Mobile: 0428 765 020

http://www.safetyweb.com.au

-Original Message-
From: Chris Estes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 March 2000 8:24 AM
To: '[EMAIL PROTECTED]'
Subject: login application help requested


I have a home page in which there are links both for public and private
pages. I want users with a password to be able to click on a private page
link, login, then be forwarded directly to that page. It is easy enough to
send them to a specific page, but I can't seem to "forward" them. This code
takes the user back to the login form.

The code I'm using is very simple and basic (which is probably the problem).
I've included it below. If anyone can help, I'd appreciate it. I've wasted
two days of my life working on this.


Application.cfm:











http://localhost/isri/login/formpage.cfm?dest=#cgi.path_info#"
addtoken="No">
 



 





Formpage.cfm:




Password:


 


Actionpage.cfm:

SELECT username, pwd
FROM login
WHERE username = '#Form.name#' AND pwd = '#form.password#'




Log In





 
 


alert("We're sorry, but we were unable to verify either your Name or
Password. Please try again.")
self.location = 'formpage.cfm'






Chris Estes
(202) 662-8536
[EMAIL PROTECTED]
http://www.isri.org
http://www.scrap.org


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: login application help requested

2000-03-29 Thread Eric Dawson



   


I don't think you need the cflocation. looks like it would loop indefinitely 
after logging in.

Eric

From: Chris Estes <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: login application help requested
Date: Wed, 29 Mar 2000 17:23:51 -0500

I have a home page in which there are links both for public and private 
pages. I want users with a password to be able to click on a private page 
link, login, then be forwarded directly to that page. It is easy enough to 
send them to a specific page, but I can't seem to "forward" them. This code 
takes the user back to the login form.

The code I'm using is very simple and basic (which is probably the problem). 
I've included it below. If anyone can help, I'd appreciate it. I've wasted 
two days of my life working on this.


Application.cfm:











http://localhost/isri/login/formpage.cfm?dest=#cgi.path_info#" 
addtoken="No">
 



  





Formpage.cfm:




Password:


 


Actionpage.cfm:

SELECT username, pwd
FROM login
WHERE username = '#Form.name#' AND pwd = '#form.password#'




Log In





  
  


alert("We're sorry, but we were unable to verify either your Name or 
Password. Please try again.")
self.location = 'formpage.cfm'






Chris Estes
(202) 662-8536
[EMAIL PROTECTED]
http://www.isri.org
http://www.scrap.org

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
the body.

__
Get Your Private, Free Email at http://www.hotmail.com

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



login application help requested

2000-03-29 Thread Chris Estes

I have a home page in which there are links both for public and private pages. I want 
users with a password to be able to click on a private page link, login, then be 
forwarded directly to that page. It is easy enough to send them to a specific page, 
but I can't seem to "forward" them. This code takes the user back to the login form.

The code I'm using is very simple and basic (which is probably the problem). I've 
included it below. If anyone can help, I'd appreciate it. I've wasted two days of my 
life working on this.


Application.cfm:
 










http://localhost/isri/login/formpage.cfm?dest=#cgi.path_info#" addtoken="No">
  



 





Formpage.cfm:




Password:


 


Actionpage.cfm:

SELECT username, pwd
FROM login
WHERE username = '#Form.name#' AND pwd = '#form.password#'




Log In





 
 


alert("We're sorry, but we were unable to verify either your Name or Password. Please 
try again.")
self.location = 'formpage.cfm'






Chris Estes
(202) 662-8536
[EMAIL PROTECTED]
http://www.isri.org
http://www.scrap.org

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.