Jump to content


Photo

PHP sessions


  • Please log in to reply
3 replies to this topic

#1 OOP

OOP
  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts
  • LocationSaudi Arabia

Posted 12 July 2006 - 11:33 AM

Hi there,
is it true that if you use session to track your users in a very big website affects the server performance? and if yes, can we say that cookies can be the alternative?

I am just confused? which is better sessions or cookies?

thanks in advance for your usual help

regards,
OOP
<?php echo'The man who makes no mistakes does not usually make anything'; ?>

#2 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 12 July 2006 - 11:51 AM

i dont know the answer, but i use sessions and it doesnt seem to effect my server..... well i dont think

#3 OOP

OOP
  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts
  • LocationSaudi Arabia

Posted 12 July 2006 - 11:57 AM

thanks a lot brown2005 for the reply  ;).

i just heard this from a friend of mine.

Any way, let us wait and see the rest.


<?php echo'The man who makes no mistakes does not usually make anything'; ?>

#4 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 12 July 2006 - 04:22 PM

Well if you have users you need a way to have them logged in etc. and since cookies are only for long term re-sign-in then sessions are the only way, and as far as I know the PHP standard for tracking users.
Unless you're expecting thousands of users at once I wouldn't worry at all.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users