Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5752
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Session variables.. |
| Date | 2012-04-26 20:35 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <jncpkr$abg$2@dont-email.me> (permalink) |
| References | <22074986.120.1335432844876.JavaMail.geo-discussion-forums@pbgg7> <4f993b25$0$6547$9b4e6d93@newsspool4.arcor-online.net> <9vsvttFhq0U1@mid.uni-berlin.de> |
On 4/26/2012 9:12 AM, M. Strobel wrote: > Am 26.04.2012 14:10, schrieb Olaf S.: >> Am 26.04.2012 11:34, schrieb xs2karan3190@gmail.com: >>> I know there is some problem regarding session variables but I am not able to get >>> what it is.. Kindly help. >>> my code is in 2 files... >>> >>> >>> test0.php---> >>> >>> <html> >>> <body> >> ^^^^^There is an OUTPUT. >> So session_start does not work. >> >> >> correct: >> <?PHP >> session_start( ..... >> >> ?> >> <html> >> etc > > The problem of output before session_start(): > > It is very handy to set "output_buffering = 4096" or so in your php.ini, and all > these problems are gone. > > If you have to output binary data you can even clear the buffer from unwanted stuff > before sending data. > > /Str. Bad idea. It may or may not work if your host changes their settings, for instance. It also adds unnecessary overhead and may hide errors in your code (error messages can be buffered, also). Much better is to just structure your code properly - i.e. ensure session_start() is called before any output. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Session variables.. xs2karan3190@gmail.com - 2012-04-26 02:34 -0700
Re: Session variables.. "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-26 11:39 +0200
Re: Session variables.. karan kumar <xs2karan3190@gmail.com> - 2012-04-26 23:33 -0700
Re: Session variables.. "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-27 10:59 +0200
Re: Session variables.. Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-27 06:30 -0400
Re: Session variables.. karan kumar <xs2karan3190@gmail.com> - 2012-05-02 21:19 -0700
Re: Session variables.. Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-03 08:11 -0400
Re: Session variables.. karan kumar <xs2karan3190@gmail.com> - 2012-05-03 23:19 -0700
Re: Session variables.. Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-04 07:36 -0400
Re: Session variables.. karan kumar <xs2karan3190@gmail.com> - 2012-04-26 23:36 -0700
Re: Session variables.. "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-27 10:52 +0200
Re: Session variables.. "Olaf S." <thesys@gmx.de> - 2012-04-26 14:10 +0200
Re: Session variables.. "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-26 15:12 +0200
Re: Session variables.. Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-26 20:35 -0400
Re: Session variables.. Scott Johnson <noonehome@chalupasworld.com> - 2012-04-26 05:36 -0700
Re: Session variables.. Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-26 20:37 -0400
csiph-web