[PHP-DB] Session troubles, could this be my isp's fault?

2003-02-25 Thread David Rice
I Have made two pages, sess2.php and sess3.php
trying to create a session variable then access it in the other page.
now when i try and call the session in the second page i get no value, 
and i have tried var_dump, and it gives me NULL anyone know if there is a 
reason for this?!

page 1 is like this

=

? session_start();?
html
head
titleSession Test/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body
?
session_register(name);
$_SESSION[name] = dave;
echo $_SESSION[name];
?
br
a href=sess3.php next /a
/body
/html
_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browsepgmarket=en-gbXAPID=74DI=1059

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] session troubles

2001-07-05 Thread Brad Wright

Hi all,
Im new to this mailing list so im not sure what to expect from 'y'all' but
i'm hoping this will be the beginning of a long and beautiful friendship.

My question:

i have a series of PHP4 pages that if I start a session (session_start()) on
the first page (adminLogin.php), all is fine and dandy...all the
session_resources get passed to the next page (login2.php) and i can get
acccess to those session resources. Te problem is, at the top of the page a
warning message is displayed:

Warning: Cannot send session cache limiter - headers already sent (output
started at /home/e-smith/files/ibays/test/html/login2.php:1) in
/home/e-smith/files/ibays/test/html/login2.php on line 1


What does this mean?? If i comment out the session_start() line,  i dodnt
get this message BUT i also dont get the session variuables i need.

Hope Im making some sense, Hope someone can help.

Thanks,
Brad


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] session troubles

2001-07-05 Thread Mark Collin

are you setting your session before the

head
/head

tags ?? if not that could be your problem

- Original Message -
From: Brad Wright [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 4:16 PM
Subject: [PHP-DB] session troubles


 Hi all,
 Im new to this mailing list so im not sure what to expect from 'y'all' but
 i'm hoping this will be the beginning of a long and beautiful friendship.

 My question:

 i have a series of PHP4 pages that if I start a session (session_start())
on
 the first page (adminLogin.php), all is fine and dandy...all the
 session_resources get passed to the next page (login2.php) and i can get
 acccess to those session resources. Te problem is, at the top of the page
a
 warning message is displayed:

 Warning: Cannot send session cache limiter - headers already sent (output
 started at /home/e-smith/files/ibays/test/html/login2.php:1) in
 /home/e-smith/files/ibays/test/html/login2.php on line 1


 What does this mean?? If i comment out the session_start() line,  i
dodnt
 get this message BUT i also dont get the session variuables i need.

 Hope Im making some sense, Hope someone can help.

 Thanks,
 Brad


 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]