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:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old April 1st, 2005, 09:47 AM
Mudflap4874 Mudflap4874 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 116 Mudflap4874 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 56 m 58 sec
Reputation Power: 4
Cookies deleted, then page goes nowhere ...

I am trying to understand a situation with using cookies and then having those cookies deleted outside of CF.

The process flow is the following (kind of long but trying to explain the best I can):

A user visits the homepage and a window asks the user to accept the Internet Usage Policy. The user clicks accept and a cookie is set that will expire in 7 days. Another window will pop and ask the user to accept the Terms & Conditions of the site. The user accepts and another cookie is set; never to expire. (Not the greatest way to approach entering the site but it's what the client wanted for their intranet).

Now there seems to be an issue with deleting the cookies from the users profile before CF can expire them on it's own. For whatever reason the cookies are being deleted via Windows Explorer or some other means and when the user goes back to the site, they cannot enter because the cookies are not there. However, the windows are not popping to allow them to agree to the policies. So it seems like CF says the cookies are there because the windows don't pop and yet they aren't because they can't get anywhere inside the site.

What code would need to be posted for review (if any)? Really everything works fine if the cookies are in place and are not removed outside of CF.

Has anyone heard of something like this before?

thanks

Reply With Quote
  #2  
Old April 9th, 2005, 02:59 AM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 183 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 16 h 46 m 44 sec
Reputation Power: 0
First off your client is wierd, but to his defense i had a dumber client once that wanted information on a form to be processed without being submitted via a button.

Second i got bored reading your manuscript so im just going to wing it and give u ideas, hope im not too incoherent.

Suggestion: Forget cookies although i love them and use them all the time (Kiteless seems to have a distaste for them). I would not use it here cause they have to last 7 days. Anybody that looks at porn will tell you that they delete their files and cookies off explorer daily (right kiteless ).

So what you should do is have a column in a database table called permission or whatever you want. Then when the client hits the checkbox you Input via an <CFQUERY> the word ON or YES or whatever. Then you do a scheduled event page where it Inputs via a <CFQUERY> the word OFF or NO in every row that is older than 7 days.

There you go a bit didactic and trite, hope it helps

-Alas (Tha Man)

Reply With Quote
  #3  
Old April 11th, 2005, 07:14 AM
Mudflap4874 Mudflap4874 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 116 Mudflap4874 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 56 m 58 sec
Reputation Power: 4
Quote:
First off your client is wierd
- Got that right

There was actually an error in the cookie logic that we were able to fix and everything worked fine after that. Thanks for your response.

Reply With Quote
  #4  
Old April 11th, 2005, 08:06 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 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 4 Days 9 h 44 m 33 sec
Reputation Power: 53
Quote:
Originally Posted by Alas
Suggestion: Forget cookies although i love them and use them all the time (Kiteless seems to have a distaste for them).
Cookies have numerous limitations, including the fact that they can only hold simple values, that there are limits on their length, that there are limits on the number of cookies per domain, and that they are so easy to disable and are viewed by many to be a privacy concern. Even though that is really not true it doesn't change the fact that relying on cookies is risky.

Quote:
Originally Posted by Alas
Anybody that looks at porn will tell you that they delete their files and cookies off explorer daily (right kiteless ).
Alas I know you think you are being cute but please knock off this kind of talk, I don't appreciate it.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Cookies deleted, then page goes nowhere ...


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 3 hosted by Hostway