Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-21-2005, 09:11 AM using cookies in PHP
Junior Talker

Posts: 12
Trades: 0
Do you think it is safe to use cookies in PHP?
Please tell your personal experience and what
will you advise to improve security.
russian_programmer is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-23-2005, 06:55 PM RE: using cookies in PHP
Junior Talker

Posts: 324
Trades: 0
Yes, I do believe it is safe. If you really want to be safe you could always encrypt the info stored inside the cookie with an md5() command.
ForgottenCreature is offline
Reply With Quote
View Public Profile
 
Old 12-25-2005, 04:44 AM RE: using cookies in PHP
Junior Talker

Posts: 12
Trades: 0
Thanks
russian_programmer is offline
Reply With Quote
View Public Profile
 
Old 12-31-2005, 12:41 PM RE: using cookies in PHP
Junior Talker

Posts: 68
Trades: 0
FYI, when i store passwords in a cookie (for Remember me option), i double encrypt the passwords.

When users register a secret string is generated and is stored in DB. Users' password is double encrypted like

sha1($password,sha1($secretStr));

ANd this is the password i store in cookie. Even though people decrypt this password, they wont get the orginal password.
jaswinder_rana is offline
Reply With Quote
View Public Profile Visit jaswinder_rana's homepage!
 
Old 01-14-2006, 12:31 AM RE: using cookies in PHP
Junior Talker

Posts: 5
Trades: 0
If you want to be really secure, you can use the $_SESSION to store values on server side, while still making them available as long as that user is browsing your site. No files are sent, so there is no way for an end user to modify them.
linuxhq is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to using cookies in PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20757 seconds with 12 queries