here is what i did.
First find the page that kicks them to the login page. Meaning the page
that has the <CFLOCATION> tag in it.
Now say the URL you email them is
http://www.myforum.com/forum.cfm?forum_id=3&thread=2
On the page where the <CFLOCATION> kicks them to the login page.
Add the ?forum_id=3&thread=2 at the end of that URL.
Then, I am assuming you are using client variables, set something
like this on the login page:
<CFSET client.afterloginurl =
"http://www.myforum.com/forum.cfm?forum_ID=#url.forum_ID#&thread=#url.thread
#">
Then on the login ACTION page where they get approved see if
client.afterloginurl ISDefined, if it is push them to THAT
URL, instead of whatever URL you currently push them to.
Hope that makes sense, It works great for me.
Kelly
-----Original Message-----
From: sebastian palmigiani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 3:00 PM
To: CF-Talk
Subject: forum subscriptions and logins
I have member site which sets a session variable after login. This site also
has a forum which emails participants when someone replies to their post.
The email contains the URL to the thread.
If they click on the URL in the email and they are not logged on they will
be taken to the login page.
How can I work it so that after they do go through the login process they
are automatically redirected to the thread?
The idea I came up with is to parse the cgi.http_referer to see if it is
asking for a subscribed thread and then put it in a session variable. After
they have a successful login then use the session variable with cflocation
to the thread.
Am I on the right track or is there a better way to do this?
Sebastian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists