Re: Opinion: PHP Sessions or Cookies
| From: | Marek Kilimajer | Date: | Tue, 13 Jul 2004 21:53:12 +0000 |
| Subject: | Re: Opinion: PHP Sessions or Cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190399@lists.php.net to get a copy of this message | ||
Ed Lazor wrote:
I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies?Session certainly.
It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28).Looks like /tmp directory is out of space. Change the directory to your own, it's more secure anyway.