•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,071 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 398 | Replies: 3
![]() |
Hi all,
Please tell me where is the cookie file stored in my computer when i run the below codes..
I checked it in the C:\
Thanks in advance
Please tell me where is the cookie file stored in my computer when i run the below codes..
I checked it in the C:\
php Syntax (Toggle Plain Text)
<?php setcookie("test","john_joseph",time()+ 3600); ?> <html> <body> <form name="cookie" method="post" action="<?php echo $_server['php_self'];?>"> Enter ur name:<input type="text" name="name"> <input type="submit" name="submit" value="SUBMIT"> </form> <?php if (isset($_COOKIE["test"])) echo "Welcome " . $_COOKIE["test"] . "!<br />"; else echo "Welcome guest!<br />"; ?></body> </html>
Thanks in advance
Last edited by peter_budo : Apr 26th, 2008 at 7:15 am. Reason: Keep It Organized - please use [code] tags
We only have to do a very few things right in our life, so long as we don't do too many things wrong.
•
•
Join Date: Aug 2005
Location: Cologne, Germany
Posts: 93
Reputation:
Rep Power: 3
Solved Threads: 8
That depends on you browser, of course. In IE (I just can guess) it is stored in Windows\Temp in a normal textfile. Opera saves all cookies in one file but but you can edit the cookies within the settings.
Firefox, Safari, Konqueror, etc save the cookies somehow else. But as I'm not using these, I don't know exactly how it works. You have to try out. Set a cookie and then use the Windows-Search-function to scan all files on your harddisk that may have stored the data from your cookie.
Firefox, Safari, Konqueror, etc save the cookies somehow else. But as I'm not using these, I don't know exactly how it works. You have to try out. Set a cookie and then use the Windows-Search-function to scan all files on your harddisk that may have stored the data from your cookie.
•
•
Join Date: Apr 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
for i.e7 C:\Documents and Settings\username\Local Settings\Temporary Internet Files
•
•
•
•
Hi all,
Please tell me where is the cookie file stored in my computer when i run the below codes..
I checked it in the C:\
<?php
setcookie("test","john_joseph",time()+ 3600);
?>
<html>
<body>
<form name="cookie" method="post" action="<?php echo $_server['php_self'];?>">
Enter ur name:<input type="text" name="name">
<input type="submit" name="submit" value="SUBMIT">
</form>
<?php
if (isset($_COOKIE["test"]))
echo "Welcome " . $_COOKIE["test"] . "!<br />";
else
echo "Welcome guest!<br />";
?></body>
</html>
Thanks in advance
It depends on the HTTP client you use. Different web browsers store cookies in different locations, and in different formats.
TXT based HTTP clients such as CURL, or Linx, will save it somewhere else. etc.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- no viewing without logging (PHP)
- ALL GMail invites to be posted here please! (Geeks' Lounge)
- w32\alemod.e.dll removal - help! (Viruses, Spyware and other Nasties)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- Can't get rid of VX2!! (Viruses, Spyware and other Nasties)
- kinda clueless new girl - search extender won't go away (Viruses, Spyware and other Nasties)
- Need Help for DNS Problem and 'about:blank' Problem ... (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: dynamic array variable..
- Next Thread: perl rather than php because no good php books. comment please.


Linear Mode