|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
session question
Is it proper to initialize the session var before assigning a value to it?
PHP Code:
because this works by itself PHP Code:
Just wondering what is correct...
__________________
-- Jason |
|
#2
|
|||
|
|||
|
You might want to read the session_register page of the PHP Manual, that has quite a few notes you should read:
http://au2.php.net/manual/en/functi...on-register.php In general, they say you should either use one or the other: but not both at once - however, the $_SESSION array provides a little bit more functionality. If you've got access to the $_SESSION array, you should that to manipulate your session vars. This is the general consensus, anyway. |
|
#3
|
|||
|
|||
|
Thanks
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > session question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|