Thanks for answering, here's the code:

<cfquery name="getAUTH" datasource="im" dbtype="ODBC">
 SELECT userlastvisited FROM users WHERE username='#form.username#' AND
userPASSWORD='#form.userpassword#'</cfquery>
<cfif getAUTH.recordcount eq 1>
<cfcookie name="lastvisited" value="#getAUTH.userlastvisited#" expires="14">

I didn't quite understand what you meant on the cookies/pages idea but I
also tried
to relocate right after setting the cookie to:
<script>location.href='/download/vamp.html'</script>
and from that page, automaticlly back to:
<script>location.href='/sectionthatneedscookie/index.cfm'</script>
just for checking, and still - it didn't work.

Thanks alot for trying thou, got any more tips??

Michael.




----- Original Message -----
From: "Dylan Bromby" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 3:37 PM
Subject: RE: COOKIE expiration :((


> post the code.
>
> otherwise - and you may already know this:
>
> remember...if you load a page with CFCOOKIE (or write a cookie any other
> way) then quit the browser, the cookie *is not* set. you need to load a
> subsequent page.
>
> for example, consider the path:
>
> page1.cfm ---> page2.cfm ---> page3.cfm
>
> assume: you login on page 1. page 2 uses CFCOOKIE to write to the client.
> page 3 does something else.
>
> if you don't go to page 3, the cookie won't be set since the CFCOOKIE code
> is in page 2. this is also why you can' access the cookie object from the
> same file that sets it. this isn't a limit of CF, it's how cookies work.
>
> so if you quit the browser right after the file that contains CFCOOKIE,
> that's why it's not persisting.
>
> -----Original Message-----
> From: Michael Lugassy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 7:10 AM
> To: CF-Talk
> Subject: Re: COOKIE expiration :((
>
>
> yea, I was aware of that.
> and I took all of the cflocations out, but still.
> the cookie terminates after I close the browser. :((
>
> Thanks,
> [EMAIL PROTECTED]
>
> ----- Original Message -----
> From: "JoshMEagle" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 30, 2001 2:23 PM
> Subject: RE: COOKIE expiration :((
>
>
> > I don't suppose you're using <cflocation> anywhere in your application?
I
> > heard that <cflocation> can cause cookie problems.
> > If you are, try <script>document.location.href="yourlink.cfm";</script>
> > instead.
> >
> > Just an idea.
> >
> > Joshua Miller
> > Web Development
> > Eagle Technologies Group
> > Technology Solutions for the Next Generation
> > www.eagletgi.com
> > [EMAIL PROTECTED]
> >
> > -----Original Message-----
> > From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 30, 2001 3:35 AM
> > To: CF-Talk
> > Subject: Re: COOKIE expiration :((
> >
> >
> > You may already be doing this but the value should be EXPIRES="NEVER"
not
> > timeout
> >
> > Bryan
> >
> > ----- Original Message -----
> > From: "Michael Lugassy" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 30, 2001 3:27 AM
> > Subject: COOKIE expiration :((
> >
> >
> > > I'm getting really frustrated from this CFCOOKIE thing.
> > > Apparently, after I assign the cookie with Timeout="Never" the cookie
> > > is deleted and terminated every time the user closes the browser.
> > > I tried to change Timeout to 14 days, but it didn't help.
> > > Closing the browser terminates the cookie.
> > >
> > > Is there a diffrent way to assign cookies?
> > >
> > > PLEASE HELP!!!
> > >
> > > -=Michael.
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to