I have an admin page that can be accessed from quite a few other pages.

I would like to return people to their original page after they're through
with this admin page.

Simple enough on the surface but people can do a lot of editing and deleting
on this page so

<a href="javascript:history.go(-1)">

doesn't work.

To keep track of the original referer page I put ?act=start into the link
that took me to the admin page and placed

<cfset return=cgi.http_referer>

in the if-else clause.

EXAMPLE:
=======
<cfif act EQ "start">
        <cfset return=cgi.http_referer>
<cfelseif ...

</cfif>

=========

That did not work. As I clicked around (act=add/act=del/act=edit) the
referer changed as well even though it was in act=start and I was selecting
act=add, etc...

Finally I decided to put it into a session variable <cfset
session.referer=cgi.http_referer> and that worked.

So, what's going on? Why isn't the session variable also updated when I
add/edit/delete?

-- gil


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194892
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to