FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » cookies or sessions???
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
cookies or sessions??? [message #33402] Wed, 30 August 2006 15:28 Go to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
if I want to protect some pages on my website, which is better to use: cookies or sessions?

from a security standpoint...


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."

[Updated on: Wed, 30 August 2006 15:33]

Report message to a moderator

Re: cookies or sessions??? [message #34012 is a reply to message #33402] Sun, 01 October 2006 15:38 Go to previous messageGo to next message
streety is currently offline  streety   United Kingdom
Messages: 5
Registered: October 2006
Karma: 0
Junior Member
As with so many things it all depends on the implementation. As long as you don't include the session id (SID) in the url (and if you are concerned about security you shouldn't) then your sessions are going to be based on cookies. Sessions are easier to use than cookies but I wouldn't say there is much difference in terms of security.
Re: cookies or sessions??? [message #34256 is a reply to message #33402] Mon, 16 October 2006 12:37 Go to previous message
sBForum is currently offline  sBForum   Jordan
Messages: 5
Registered: October 2006
Location: Jordan
Karma: 0
Junior Member

as u said " from a security standpoint " .. i would tell u to use sessions .. but if u have the way to protect ur cookies u can use cookies .. but generally , it's safer to use sessions as it's saved in the server not in the user computer , but cookies already are saved in the user's pc ..

regards ,
sBForum
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MYSQL Update error
Next Topic: how to add javascript in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 05 02:21:12 GMT 2024

Total time taken to generate the page: 0.02496 seconds