NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions

e_dave drodriguez1 at mac.com
Wed Jan 29 08:18:01 EST 2003


Thanks to everyone for the help with sessions.  I simply didn't realize 
that session_start(); had to come so soon in the page.

e.Dave

On Tuesday, January 28, 2003, at 11:57 PM, Seth [Ghiek] wrote:

> this is how i start every web page...and the $tid value is maintained
> flawlessly for tracking the user.
>
> ***********
> <?php
> session_start();
> $tid = $_COOKIE["PHPSESSID"];
> ************
> I, for one, am completely blown away with how easy sessions are to 
> manage
> with php. i never it expected it to be so simple, so transparent and so
> reliable...at least, at my host, it works that way.
>
> spirits,
>
> seth j hersh
>
> -----Original Message-----
> From: Christopher Hendry [mailto:chendry at nyc.rr.com]
> Sent: Tuesday, January 28, 2003 5:07 PM
> To: NYPHP Talk
> Subject: RE: [nycphp-talk] Sessions
>
>
> Howdy e.Dave -
>
> probably not the right place for this question, but what this likely 
> means
> is that you're trying to start your session after you've already output
> something to the browser.  session_start() should be the first 
> function you
> call in your code - and should be before any HTML.
>
> contact me directly if you need more help.  C
>
> -> -----Original Message-----
> -> From: e_dave [mailto:drodriguez1 at mac.com]
> -> Sent: Tuesday, January 28, 2003 4:26 PM
> -> To: NYPHP Talk
> -> Subject: [nycphp-talk] Sessions
> ->
> ->
> -> Let's try that one more time, in plain text.
> ->
> -> Can someone point me in the right direction?  I am writing what I 
> think
> -> is a fairly simple session authentication script, but I keep getting
> -> the following error:
> ->
> -> Warning :  Cannot send session cache limiter - headers already sent
> -> (output started at 
> /Library/WebServer/Documents/DSMetro/header.php:16)
> -> in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111
> ->
> -> It sounds to me like the problem is due to the http headers at the 
> top
> -> of the page, but I don't know how best to handle this.  I don't 
> want to
> -> leave out the headers, right?
> ->
> -> Your friendly neighborhood newbie.
> ->
> -> e.Dave
> ->
> ->
> ->
> ->
> ->
> ->
> ->
>
>
>
>
>
>
>
>
>
>
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>




More information about the talk mailing list