CodeIgniter Forums

Full Version: What is the file name of the cookie?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]whygod[/eluser]
Okay I"m trying to save a cookie using these codes below,
Code:
<?php
//Calculate 60 days in the future
//seconds * minutes * hours * days + current time
$inTwoMonths = 60 * 60 * 24 * 60 + time();
setcookie('lastVisit', date("G:i - m/d/y"), $inTwoMonths);
?>

And I also found out that the cookie is save in this path below,
Code:
C:\Users\(User-Name)\AppData\Roaming\Microsoft\Windows\Cookies

By the way I'm uisng windows7 and Chrome browser.
THe problem is there are too many file names in the cookies subfolder.
How do I know which filename is these cookie codes fall into?

THanks in advanced.

El Forum

[eluser]Aken[/eluser]
Why do you need the actual cookie path in the first place? I've never needed that in all my years of development.