There is a tag for this, it is based on fusebox, but can be modified for
your needs. You can find it here it's called ( returnfuseaction )
http://www.fusebox.org/index.cfm?fuseaction=learn.gallery
This would be placed in the page before the login request.
<CF_RETURNFUSEACTION
ACTION="set"
RETURNURL="#CGI.PATH_INFO#?#request.attributesList#">
This would be placed in your login page after login has been verified.
<CF_RETURNFUSEACTION
ACTION="return">
There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.
Doug Brown
----- Original Message -----
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 9:18 AM
Subject: Re: Login forms
> Yes, this is a common application. I describe how to do this in
Instant
> ColdFusion (my 1st book), but the basics are:
>
> Create a log-in page. When the user logs in, set a session
variable,
> something along the lines of 'IsLoggedIn' or if you are dealing with
group
> level access, I like to us a list of the groups the user belongs to.
>
> In the application.cfm in the subdirectory (Make sure your
cfapplication
> tags have the same name) check the access like this:
>
> <cfif session.isloggedin is false>
> <cflocation back to login page> ( <-- not exact code )
> </cfif>
>
>
>
> At 11:52 AM 01/28/2002 -0500, you wrote:
> >I am new to CF and wondering if there is a way to have a login page
that
> >would be accessed when a user comes to any page in the application,
(Say
> >they bookmarked a page deeper than the root,) and the user would be
sent to
> >the originally requested page after logging in.
> >
> >ie.
> >User goes to <http://www.webaddress.com/photos/addphoto.cfm>
> >ww.webaddress.com/photos/addphoto.cfm or showphots.cfm
> >User is sent to to <http://www.webaddress.com/photos>
> >ww.webaddress.com/photos/login.cfm
> >After logging in user is replaced to
> ><http://www.webaddress.com/photos/addphoto.cfm>
> >ww.webaddress.com/photos/addphoto.cfm or showphotos.cfm
respectively.
> >
> >Thanks for any help in advance.
> >Chris
> >
>
>
>
> --
> Jeffry Houser | mailto:[EMAIL PROTECTED]
> AIM: Reboog711 | ICQ: 5246969 | Fax / Phone: 860-223-7946
> --
> Need a Web Developer? Contact me!
> My Book: Instant ColdFusion 5 | http://www.instantcoldfusion.com
> My New Book: ColdFusion: A Beginner's Guide February 2002
> --
> Far Cry Fly, Alternative Folk Rock
> http://www.farcryfly.com | http://www.mp3.com/FarCryFly
>
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists