PDA

View Full Version : Sessions


Smoky
11-10-2004, 07:56 PM
Hey again....

Just heard about sessions in PHP. What i have heard is that they can idenity computers connected to a page and validate if they can go there.....

This seams real cool because at the moment i have a system where information is entered and the it goes through processes and such then it comes to the page and then checks the encrypted cookies and a "activity" file which isnt encrypted which is under the root directory. The activity files name is based on there IP address and a array number....

As you can see this becomes rather long and complex at times.... So my question is,

~is using sessions quicker to use?
~what do you need to use them?
~how secure?
~could you show me a example of setting one up and getting it?


Cheers for any help

TheRudy
11-10-2004, 09:25 PM
~is using sessions quicker to use?
quicker to use in what way?

~what do you need to use them?
PHP code

~how secure?
comparing to cookies, sessions are 'saved' on server while cookies are placed on clients PC, so yeah sesstion are more secure if used correct way!

~could you show me a example of setting one up and getting it?
http://www.php.net/manual/en/ref.session.php
On that page all about sessions is explained and you also have a lot of examples on how to use them! Read the whole page!

Smoky
11-11-2004, 08:27 AM
:P Cool thanks for the page...!

:lol:

mahangee
11-11-2004, 04:47 PM
I would defiantly recommend using Sessions as they are by far the best.