Re: [PHP] Re: how to use session?

2004-07-21 Thread Matthew Sims
> even Example: page1.php > I got the same result, > and what if i set session auto start ?? > is that means it starts a new session when accessing a HTML? > > > > // page1.php > > session_start(); > > echo 'Welcome to page #1'; > > $_SESSION['favcolor'] = 'green'; > $_SESSION['animal

Re: [PHP] Re: how to use session?

2004-07-21 Thread Josh Close
you have to have the session_start before ANY output, including , so do this On Thu, 22 Jul 2004 00:56:44 +0800, Sheawh <[EMAIL PROTECTED]> wrote: > even Example: page1.php > I got the same result, > and what if i set session auto start ?? > is that means it starts a new session when access

[PHP] Re: how to use session?

2004-07-21 Thread Sheawh
even Example: page1.php I got the same result, and what if i set session auto start ?? is that means it starts a new session when accessing a HTML? page 2'; echo "SID : " . session_id(); // Or maybe pass along the session id, if needed echo 'page 2'; ?> "Torsten Roehr" <[EMAIL

[PHP] Re: how to use session?

2004-07-21 Thread Torsten Roehr
"Sheawh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have started a session using session_start(); > but it returns : > > Warning: Cannot send session cookie - headers already sent by (output > started at c:\inetpub\wwwroot\diary\index.php:7) in > c:\inetpub\wwwroot\diary\reg_s

[PHP] Re: how to use session data in other php scripts

2002-04-26 Thread Uchendu Nwachukwu
Simply do the same thing in the other script. Create a session named 'testsess' and register the variable (under the same name) to it. That variable will auttomatically take up the it was set to previously. -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com "Deval Parikh" <[EMAI