Computing.Net > Forums > Web Development > php cookies

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php cookies

Reply to Message Icon

Name: BigShow
Date: October 26, 2008 at 11:40:40 Pacific
OS: xp
CPU/Ram: pentium 4
Product: dell
Comment:

Two part question here.

I am using cookies on a member site, i was told they are very hackable, i dont see how but i am told to use sessions. Can I get some opinions.

Second, if it set a cookie with php i assume i can always retrieve it with javascript correct?



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: October 26, 2008 at 20:47:45 Pacific
Reply:

Here's an article on cookies versus sessions. For someone determined to hack, anything is possible no matter which you use.

For the second question, yes. However, the client could have js disabled, so keep that in mind.

HTH


0

Response Number 2
Name: Michael J (by mjdamato)
Date: October 27, 2008 at 20:14:50 Pacific
Reply:

Cookies are stored on the client computer, so someone could simply open the cookie file on their PC and edit however they choose. Session data is stored on the server. However, there is a cookie stored on the client which identifies the session, but that is it - all session specific data is stored on the server.

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: php cookies

Php cookies www.computing.net/answers/webdevel/php-cookies/1483.html

Unexplainable .... www.computing.net/answers/webdevel/unexplainable-/1635.html

php and cookie expiration www.computing.net/answers/webdevel/php-and-cookie-expiration/3446.html