ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 6th, 2005, 09:59 AM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
Sending Variables...

Another quick question (sorry!)

To send variables from one page to another I use this...

blah.cfm?portEmail=#email#

What is the syntax if I want to send many variables to the next page the same way?

Reply With Quote
  #2  
Old April 6th, 2005, 10:06 AM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
Actually, here is a better explanation of what i'm doing.

I've got a page that you can "subscribe" to an e-mail list let's say, so you add your e-mail addy etc, it adds it to the database and sends an e-mail back to the person saying thanks blah blah.

What i'm trying to do is make a link you can click to unsubscribe, but i'm nervous about not doing it right via security.

Right now, to hit the page that will unsubscribe you, you need to authenticate. And the usernames and passwords are kept in a secure database. That's fine.

I'm assuming I need to create a link with a username/password which satisfys the authentication and then runs the scribe to unsubscribe that user based on the ID that was originally hidden in the "thank you" e-mail.

Now...I figure I can make a temp user/password which dies as soon as it has been used. What I don't know, is how to write the link that will feed the username/pass/take the ID from the e-mail.

I'd just like some advice since I haven't done this before and I don't want to leave something the size of a black hole for somebody to hack me.

Thanks
Caden

Reply With Quote
  #3  
Old April 6th, 2005, 10:08 AM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
Actually, here is a better explanation of what i'm doing.

I've got a page that you can "subscribe" to an e-mail list let's say, so you add your e-mail addy etc, it adds it to the database and sends an e-mail back to the person saying thanks blah blah.

What i'm trying to do is make a link you can click to unsubscribe, but i'm nervous about not doing it right via security.

Right now, to hit the page that will unsubscribe you, you need to authenticate. And the usernames and passwords are kept in a secure database. That's fine.

I'm assuming I need to create a link with a username/password which satisfys the authentication and then runs the script to unsubscribe that user based on the ID that was originally hidden in the "thank you" e-mail.

Now...I figure I can make a temp user/password which dies as soon as it has been used. What I don't know, is how to write the link that will feed the username/pass/take the ID from the e-mail.

I'd just like some advice since I haven't done this before and I don't want to leave something the size of a black hole for somebody to hack me.

Thanks Again
Caden

Reply With Quote
  #4  
Old April 6th, 2005, 10:11 AM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 23 m 47 sec
Reputation Power: 4
Quote:
Originally Posted by Caden
Another quick question (sorry!)

To send variables from one page to another I use this...

blah.cfm?portEmail=#email#

What is the syntax if I want to send many variables to the next page the same way?


To do this, and just this, you would want to do

blah.cfm?portEmail=#email#&ID=#ID#&username=#username#

With the '&' between each variable.

Reply With Quote
  #5  
Old April 6th, 2005, 10:18 AM
Caden Caden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 270 Caden User rank is Private First Class (20 - 50 Reputation Level)Caden User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 6 h 57 m 16 sec
Reputation Power: 4
Cool, that's useful, thank you.

In reference to my "extended" post, I was reading my book and I found that insted I can create an automated agent to do it via the user sending an e-mail back with a code word in the subject line.

To me, this sounds like a much safer/secure way of doing things.

Reply With Quote
  #6  
Old April 6th, 2005, 10:19 AM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 23 m 47 sec
Reputation Power: 4
For the other questions you can do this many ways. Here's three.

1. Have the user go to a generic page and log in. Make sure your form's method equals "post" and not "get." Get will add the variables in the URL. Post will hide the variables and you can access them using FORM.fieldname.

2. Send them to a page and include the user ID in the URL (i.e. unsubscribe.cfm?userID=2). Theoretically, your user ID is unique to the person and you can pull the person using the ID on the unsubscribe page. However, as far as security, if I wanted, I could type in different user IDs and unsubscribe everyone.

3. Take solution number 2 but instead of passing the simple user ID value, create something that will encrypted & decrypt the value as needed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Sending Variables...


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


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

IBM developerWorks




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