CodeIgniter Forums
What is the file name of the cookie? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: What is the file name of the cookie? (/thread-56263.html)



What is the file name of the cookie? - El Forum - 12-06-2012

[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.


What is the file name of the cookie? - El Forum - 12-06-2012

[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.