RE: Simple Cookie

2004-07-16 Thread Pascal Peters
I stand corrected! I still do most development for CF4.5 or CF5 so this
was a natural reaction for me. It won't happen again.

If you are not using CFMX: don't do a cflocation after a cfcookie.

Pascal

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: 16 July 2004 18:00
> To: CF-Talk
> Subject: RE: Simple Cookie
> 
> > When they vote (don't do a cflocation afterwards!!):
> > 
> 
> If you're using CFMX, you can use CFCOOKIE and CFLOCATION within the
same
> page.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> phone: 202-797-5496
> fax: 202-797-5444
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Simple Cookie

2004-07-16 Thread Bryan Stevenson
Pascal...in CFMX at least you can now set a cookie AND use CFLOCATION after it in the same pagein previous versions this would mean the cookie would not be setbut that has been fixed ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  - Original Message - 
  From: Pascal Peters 
  To: CF-Talk 
  Sent: Friday, July 16, 2004 8:43 AM
  Subject: RE: Simple Cookie

  When they vote (don't do a cflocation afterwards!!):
  

  Before they vote:
  
  ... don't query the db
  
  ... query the db
  

  Pascal

  > -Original Message-
  > From: Asim Manzur [mailto:[EMAIL PROTECTED]
  > Sent: 16 July 2004 16:54
  > To: CF-Talk
  > Subject: Simple Cookie
  > 
  > hi, I need a little hand.
  > 
  > I have a voting website.
  > I want to prevent the users to do the multiple submissions.
  > I am saving their IPs in the DB when they vote.
  > 
  > Now I also want to send the cookie, so, if the cookie exists then no
  need
  > to query the database and just show the message that multiple
  submission
  > not allowed.
  > 
  > I am trying to set the cookie  like below code but its not setting up
  i
  > think. there is no error
  > 
  > domain="www.abc.com">
  > 
  > How can I setup the cookie and then read it later on?
  > Thanks
  > 
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Simple Cookie

2004-07-16 Thread Dave Watts
> When they vote (don't do a cflocation afterwards!!):
> 

If you're using CFMX, you can use CFCOOKIE and CFLOCATION within the same
page.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Simple Cookie

2004-07-16 Thread Pascal Peters
When they vote (don't do a cflocation afterwards!!):


Before they vote:

	... don't query the db

	... query the db


Pascal

> -Original Message-
> From: Asim Manzur [mailto:[EMAIL PROTECTED]
> Sent: 16 July 2004 16:54
> To: CF-Talk
> Subject: Simple Cookie
> 
> hi, I need a little hand.
> 
> I have a voting website.
> I want to prevent the users to do the multiple submissions.
> I am saving their IPs in the DB when they vote.
> 
> Now I also want to send the cookie, so, if the cookie exists then no
need
> to query the database and just show the message that multiple
submission
> not allowed.
> 
> I am trying to set the cookie  like below code but its not setting up
i
> think. there is no error
> 
> domain="www.abc.com">
> 
> How can I setup the cookie and then read it later on?
> Thanks
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Simple Cookie

2004-07-16 Thread Asim Manzur
hi, I need a little hand.

I have a voting website.
I want to prevent the users to do the multiple submissions.
I am saving their IPs in the DB when they vote.

Now I also want to send the cookie, so, if the cookie exists then no need to query the database and just show the message that multiple submission not allowed.

I am trying to set the cookie  like below code but its not setting up i think. there is no error


How can I setup the cookie and then read it later on?
Thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]