![]() |
Is this method safe?
So I coded a file upload system for my site. Only memebers are allowed to access it. I want to know if the following method is safe:
:
<?For those of you who are still unclear, I want to know if keeping the upload form in html (instead of echoing it via php) is safe? |
Check the ID. Cookies and sessions can be faked.
|
How can you fake a session?
I thought they were stored on the server? Or do you mean fake the SID and not the data? How would someone do that?! |
Sorry - kinda misread the question. I can't see a problem, but I'm no expert on sessions.
|
Assuming the SIDs are chosen suitably, and I don't know of any reported flaws in PHP's default session handling, then SIDs are secure. Or, at least, secure enough that they are no longer the weakest link in the chain; guessing usernames and passwords is likely far easier than guessing a pseudorandomly generated, temporary SID.
So as far as I'm aware, your code is as safe as it can be, TCStyle. |
The only way your code could be unsafe is if someone was able to guess your session ID (Arevos mentioned this as well).
also, if you are on a shared web-host, you may have issues with other people on that host being able to read your sessions. |
| All times are GMT -5. The time now is 12:59 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC