Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get/Store Cookies in client's PC 2

Status
Not open for further replies.

fuyu

Programmer
Jan 2, 2001
3
SG
There are some questions about CF cookies I would like to ask.
Q1. How to store cookies in the client's PC and where would it be store?

Q2. How do I retrieve the cookie in my next login and where do I get the cookies?

Q3. What is store in the cookie?
 
Cookies will be stored at Windows/cookies folder..It is usually a text document.

<CFCOOKIE name=&quot;cookid&quot; value=&quot;5&quot; expires=&quot;100&quot;>
The above sets a cookie name cookid wif a value 10
u can increment is---->meaning u set the value to maybe cookincremet

expires means --->the cookie will expire in 100 days

e.g
<cfset cookid=cookid+1>---->maybe u can take the value of the last cookie from the database
<CFCOOKIE name=&quot;cookid&quot; value=&quot;cookid&quot; expires=&quot;100&quot;>


Below is the exmaple of wat is stored in the cookie

listencom
203.117.33.23.2958975858785783
0
2070890112
29751128
2296227776
29384119
*

What u can do is...go to ur PC go to C:/windows/cookies foler
and open one of the files(txt)and paste it in the html
thats wat i did
I think the wb site name...the IP address of the site, the url...and the rest of it i m not so sure....

Cheers
ALisha:)ur fren always
 
Sorry this is the updated one

Cookies will be stored at Windows/cookies folder..It is usually a text document.

<CFCOOKIE name=&quot;cookid&quot; value=&quot;5&quot; expires=&quot;100&quot;>
The above sets a cookie name cookid wif a value 10
u can increment is---->meaning u set the value to maybe cookincremet

expires means --->the cookie will expire in 100 days

e.g
<cfset cookcount=cookcount+1>---->maybe u can take the value of the last cookie from the database
<CFCOOKIE name=&quot;cookid&quot; value=&quot;cookcount&quot; expires=&quot;100&quot;>


Below is the exmaple of wat is stored in the cookie

listencom
203.117.33.23.2958975858785783
0
2070890112
29751128
2296227776
29384119
*

What u can do is...go to ur PC go to C:/windows/cookies foler
and open one of the files(txt)and paste it in the html
thats wat i did
I think the wb site name...the IP address of the site, the url...and the rest of it i m not so sure....

Cheers
ALisha:)ur fren always
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top