Re: [PHP] Re: Need Help for Session

2004-08-27 Thread Pahlevanzadeh Mohsen
1.You must call session_start before making a HTML for
client.
2.Please use if (!session_is_registered('vb1'))
   session_register('vb1');


--- "S. Kang" <[EMAIL PROTECTED]> wrote:

> 
> 
> Afzal Hussain ) wrote:
> 
> > 
> > 
> > 
> > 
> >>Sir,
> >>I am afzal hussain from bangladesh. Acually i am
> getting some problem using session in php. This is
> the sample code that i have written,
> >>
> >>>session_start();
> >>
> //>>$vbl="This variable is registered";
> //>>session_register('vbl');
> 
> $_SESSION['vb1'] = "This variable is registered";
> 
> //>>echo $vbl;
> 
> echo $_SESSION['vb1'];
> 
> >>?>
> >>it shows this output.
> >>
> >>
> >>Warning: Cannot send session cookie - headers
> already sent by (output started at c:/program
> files/abria merlin/apache/htdocs/session.php:3) in
> c:/program files/abria
> merlin/apache/htdocs/session.php on line 4
> >>
> >>Warning: Cannot send session cache limiter -
> headers already sent (output started at c:/program
> files/abria merlin/apache/htdocs/session.php:3) in
> c:/program files/abria
> merlin/apache/htdocs/session.php on line 4
> >>
> >>Warning:
> open(/tmp\sess_178d4e9e23a4d7b1f061f93e7f172496,
> O_RDWR) failed: m (2) in c:/program files/abria
> merlin/apache/htdocs/session.php on line 4
> >>This variable is registered 
> >>
> >>Finding no other way i am sending this email to u.
> Could u pls tell me what s\could be the problem. and
> How i can i solve that problem.
> >>
> >>thanks you very much.
> >>afzal Hussian
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Win 1 of 4,000 free domain names from Yahoo! Enter
> now.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator  & programmer 
  My home phone is: +98213810146  
My email address is  
  m_pahlevanzadeh at yahoo dot com   
My website is: http://webnegar.net




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



[PHP] Re: Need Help for Session

2004-08-27 Thread S. Kang

Afzal Hussain ) wrote:


Sir,
I am afzal hussain from bangladesh. Acually i am getting some problem using session in 
php. This is the sample code that i have written,
session_start();

//>>$vbl="This variable is registered";
//>>session_register('vbl');
$_SESSION['vb1'] = "This variable is registered";
//>>echo $vbl;
echo $_SESSION['vb1'];
?>
it shows this output.
Warning: Cannot send session cookie - headers already sent by (output started at 
c:/program files/abria merlin/apache/htdocs/session.php:3) in c:/program files/abria 
merlin/apache/htdocs/session.php on line 4
Warning: Cannot send session cache limiter - headers already sent (output started at 
c:/program files/abria merlin/apache/htdocs/session.php:3) in c:/program files/abria 
merlin/apache/htdocs/session.php on line 4
Warning: open(/tmp\sess_178d4e9e23a4d7b1f061f93e7f172496, O_RDWR) failed: m (2) in c:/program files/abria merlin/apache/htdocs/session.php on line 4
This variable is registered 

Finding no other way i am sending this email to u. Could u pls tell me what s\could be 
the problem. and How i can i solve that problem.
thanks you very much.
afzal Hussian


-
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php