ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Verisign Code Signing
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 26th, 2004, 10:42 AM
tech-writer tech-writer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 tech-writer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 9 sec
Reputation Power: 5
Passing values through an error.cfm

I have put in an error page and am trying to avoid forcing the user to log back in after receiving an error, they should be able to simply return to the home page. To do this I need to pass the user_id.

Anyone have any ideas on how this can be accomplished?

Reply With Quote
  #2  
Old March 26th, 2004, 01:38 PM
kiteless kiteless is online now
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,512 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 21 h 12 m 37 sec
Reputation Power: 45
umm, maybe I'm missing something, but why not just do a cflocation at the bottom of your error template that redirects the user back to the home page, appending the appropriate url variables as necessary?

Reply With Quote
  #3  
Old March 29th, 2004, 07:40 AM
tech-writer tech-writer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 tech-writer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 9 sec
Reputation Power: 5
Well ... maybe there is a different way than we are doing.

Right now application.cfm directs you to error.cfm like this:

<cferror template="error.cfm" type="request" exception="Error.Template">

The above statement does not accept appended values on the URL so once the user is on the error.cfm page there are no remaining values to append for passing. Passing FROM the error page will be easy once I can pass them TO the error page in the first place.

Reply With Quote
  #4  
Old March 29th, 2004, 08:54 AM
kiteless kiteless is online now
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,512 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 21 h 12 m 37 sec
Reputation Power: 45
Would using the cferror data key "queryString" work for you? This should be a string holding whatever was in the user's query string at the time of the error. You could append that to the cflocation in your error handling template.

Reply With Quote
  #5  
Old March 29th, 2004, 11:02 AM
tech-writer tech-writer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 tech-writer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 9 sec
Reputation Power: 5
That would be fine ... If I could pass the user_id TO the error handling template from application.cfm.

I iether need a different way to send the user to the error page, or I need a way to pass the userid in the following:

<cferror template="error.cfm" type="request" exception="Error.Template">

Reply With Quote
  #6  
Old March 29th, 2004, 12:15 PM
kiteless kiteless is online now
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,512 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 21 h 12 m 37 sec
Reputation Power: 45
How are you keeping up with the userID right now? If it in the query string, it will be available as part of the querystring key of the cferror structure. If you're using session variables, those variables should still be available on the error page for you to use.

Reply With Quote
  #7  
Old March 29th, 2004, 12:25 PM
tech-writer tech-writer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 tech-writer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 9 sec
Reputation Power: 5
The way the logout is structured #session.danum# is not available on that page for some reason. I didn't write that part of the code. My partner on the project had to implement a secutrity measure because loggin back in with a different ID was still using the first ID access. It may be possible we need an alternate solution for access security. If we can't find a way to pass the variable we'll have to look at that.

Reply With Quote
  #8  
Old March 29th, 2004, 03:52 PM
tech-writer tech-writer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 tech-writer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 9 sec
Reputation Power: 5
went a different route ... put a JS back button to move back 2 pages to before they entered teh error.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Passing values through an error.cfm


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway