[PHP] Sessions : see also Tracking file downloads

2002-06-18 Thread PHPCoder

HI
While waiting for responses on my first question, I've done some reading 
on sessions, and came up with the following questions:
First, I have been coding with PHP for a while without knowing about 
sessions, and have completed a couple of rather large projects without 
using sessions as such, yet, much of what I have read on sessions, I 
have done manually already by creating my own unique id's and 
passing them on via url to the subsequent pages.
So, here is my question.
Is sessions basically just that, made easier , or are there 
fundamental differences/advantages. I know (now after reading a bit) 
about the use of cookies etc if availale when using sessions, and that 
you cannot overwrite a session variable by passing it via url, but are 
those the only differences? So, basically, do you really HAVE to use 
sessions, or is it like most other things in life; there are more than 
one way to skin a cat. Are there set rules or guidelines to when one 
would definately absolutely have to use sessions?

Thanks
Hope I make sense...
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sessions : see also Tracking file downloads

2002-06-18 Thread 1LT John W. Holmes

You can do whatever you want, of course.

Sessions just make your code easier and portable and more people will be
able to understand what you're talking about.

Sessions are just a way to pass a variable between pages. You assign a
variable to the session, and you retrieve it on any other page that has a
session. that's it. You can use regular variables or arrays...

---John Holmes...
- Original Message -
From: PHPCoder [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 8:12 AM
Subject: [PHP] Sessions : see also Tracking file downloads


 HI
 While waiting for responses on my first question, I've done some reading
 on sessions, and came up with the following questions:
 First, I have been coding with PHP for a while without knowing about
 sessions, and have completed a couple of rather large projects without
 using sessions as such, yet, much of what I have read on sessions, I
 have done manually already by creating my own unique id's and
 passing them on via url to the subsequent pages.
 So, here is my question.
 Is sessions basically just that, made easier , or are there
 fundamental differences/advantages. I know (now after reading a bit)
 about the use of cookies etc if availale when using sessions, and that
 you cannot overwrite a session variable by passing it via url, but are
 those the only differences? So, basically, do you really HAVE to use
 sessions, or is it like most other things in life; there are more than
 one way to skin a cat. Are there set rules or guidelines to when one
 would definately absolutely have to use sessions?

 Thanks
 Hope I make sense...




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php