Date:  11/19/2001 05:12:17 PM Msg ID:  000147
From:  FoxWeb Support Thread:  000128
Subject:  Re: Create simple cooikes program
To create a cookie with version 1.29c you must send an HTTP cookie header, or a META tag.  The property CGI.Cookie returns all cookies sent by the browser.  For sample code that illustrates the use of cookies in FoxWeb 1.29c please refer to the file cookies.prg.

As I mentioned in my previous message, FoxWeb 2.0 has a much improved interface for working with cookies.

FoxWeb Support Team
support@foxweb.com

Sent by Fox JW on 11/18/2001 08:21:44 PM:
Hi,

Thanks for your reply. Can those commands mentioned in the Session Management page be used in FoxWeb v1.29? If not, what's the command to send and retrieve the value of a cookie?

Thanks

JW

Sent by FoxWeb Support on 11/17/2001 11:08:20 PM:
Cookies have nothing to do with "loggin in."  They are stored on the browser and are sent back to the server with each request until they expire.  If you don't specify an expiration date in the cookie header, then the cookie will expire when the user shuts down his/her Web browser.  For more information please refer to Cookie section in the Session Management page of the FoxWeb documentation (http://www.foxweb.com/document/State.htm).

FoxWeb Support Team
support@foxweb.com

Sent by Fox JW on 11/17/2001 01:32:18 AM:
Hi,

I've got it from the cookies.prg but how do I open/retrieve the saved cookies when next time the users login again? And when I manage to open the cookies, can I display the info into the user's browser?

Thanks

JW

Sent by FoxWeb Support on 11/16/2001 01:01:41 AM:
You can find such a program at http://www.foxweb.com/files/cookies.prg.  FoxWeb 2.0 users have a much better program in the samples directory.

FoxWeb Support Team
support@foxweb.com

Sent by Fox JW on 11/15/2001 11:27:28 PM:
Hi,

I am using FoxWeb v1.29 with VFP6. Can anyone give me some tips on how to create a program to pass cookies to the users' browser? All I need is a simple program to store the user's information into the cookies.

Thanks.

JW