|
| Web Hosting Deals | Holiday Logo Design | Webcam Chat | Website Header Templates | Register domain | Search Engine Optimisation | Web Hosting |
|
|||||||
| Programming / Scripting / Coding Got a question about : PHP / Perl / Java / JavaScript / CGI Scripts / JavaScript coding. Ask here! We'll get you the answers ! |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Session PHP tip
One thing that crossed my mind and might prove itself useful to people that are just starting to learn PHP, or are advanced newbies, is regarding sessions.
Some people like to use opensource scripts in begining of their career, and some of them use sessions to store variables. Always remember that if you use session_start (); in any of your php files and aplications, it HAS to be first line in php file. In other words, at the top of the page. just after <?php tag, and even before <html> or any other tag. Best regards. |
|
|||
|
Not if your using multiple sessions or you dont want the session to start when the page loads for many reasons..
__________________
StudentMeh.co.uk - Next Generation Student Networking! |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|