Using Win32 functions in Visual FoxPro Image Gallery
Internet Functions (WinInet)
..msdn
CreateMD5SSOHash
DeleteUrlCacheEntry
DetectAutoProxyUrl
FindCloseUrlCache
FindFirstUrlCacheEntry
FindFirstUrlCacheGroup
FindNextUrlCacheEntry
FindNextUrlCacheGroup
FtpCommand
FtpCreateDirectory
FtpDeleteFile
FtpFindFirstFile
FtpGetCurrentDirectory
FtpGetFile
FtpGetFileSize
FtpOpenFile
FtpPutFile
FtpRemoveDirectory
FtpRenameFile
FtpSetCurrentDirectory
GetUrlCacheEntryInfo
HttpOpenRequest
HttpQueryInfo
HttpSendRequest
InternetAttemptConnect
InternetAutodial
InternetAutodialHangup
InternetCanonicalizeUrl
InternetCheckConnection
InternetCloseHandle
InternetConnect
InternetCrackUrl
InternetDial
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetCookie
InternetGetLastResponseInfo
InternetGoOnline
InternetOpen
InternetOpenUrl
InternetQueryDataAvailable
InternetQueryOption
InternetReadFile
InternetSetCookie
InternetSetFilePointer
InternetTimeFromSystemTime
InternetTimeToSystemTime
InternetWriteFile
Code examples:
Managing Cookies
InternetSetCookie
..msdn    Add comment     W32 Constants      Translate this page
This function creates a cookie associated with the specified URL.
Code examples:
Managing Cookies
Declaration:
BOOL InternetSetCookie (
    LPCTSTR lpszUrl, 
    LPCTSTR lpszCookieName, 
    LPCTSTR lpszCookieData
);
FoxPro declaration:
DECLARE INTEGER InternetSetCookie IN wininet;
    STRING lpszUrl,;
    STRING lpszCookieName,;
    STRING lpszCookieData
Parameters:
lpszUrl
[in] Address of a null-terminated string that specifies the URL for which the cookie should be set.

lpszCookieName
[in] Address of a string that contains the name to associate with the cookie data. If this parameter is NULL, no name is associated with the cookie.

lpszCookieData
[in] Address of the actual data to associate with the URL.
Return value:
Returns TRUE if successful, or FALSE otherwise.
My comment:
See InternetGetCookie.

Cookies created by this function without an expiration date are stored in memory and are available only in the same process that created them. Cookies that include an expiration date are stored in the windows\cookies directory.

See in attached examples how to create persistent and session cookies.
Word Index links for the InternetSetCookie :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-02 18:48:46
Modified: 2001-11-26 16:03:56
Visited in last 7 days: 20
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.73.186)
16 sec.Function: 'GetKeyState'
32 sec.Function: 'GetAclInformation'
48 sec.Function: 'MAPIReadMail'
1.08 min.Function: 'GetParent'
1.35 min.Function: 'LoadLibrary'
1.62 min.Function: 'GdipGetDpiX'
1.9 min.Function: 'GetClipboardViewer'
2.13 min.Function: 'SQLCreateDataSource'
2.4 min.Function: 'AVIStreamInfo'
2.7 min.Function: 'OpenEvent'
Google
Advertise here!