[PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the site to a host server with PHP 4.3.8 and now I keep

Re: [PHP] Sessions - session_start()

2006-05-15 Thread nicolas figaro
Jonas Rosling a écrit : Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the site to a host server with PHP

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Thomas Munz
put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 15.56, skrev nicolas figaro [EMAIL PROTECTED]: Jonas Rosling a écrit : Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 16.00, skrev Thomas Munz [EMAIL PROTECTED]: put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Eric Butera
On 5/15/06, Jonas Rosling [EMAIL PROTECTED] wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tedd
At 4:33 PM +0200 5/15/06, Jonas Rosling wrote: Den 06-05-15 16.00, skrev Thomas Munz [EMAIL PROTECTED]: put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tg-php
session_start() doesn't need to be the first line of your PHP code, it just needs to be called before any other output is performed. Including any blank spaces or anything else. If you have: --- 1: 2: ?php 3: session_start(); 4: ? --- It's not going to work because you have a blank line

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 8:53 am, Jonas Rosling wrote: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/index.php:9) in /var/www/html/index.php on line 82 But I found out that if I put the tag in the absolute top of every page it

[PHP] Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
Dears,I have 3 files. k.php : ? session_start(); $S_userk=$HTTP_POST_VARS['u']; $S_pass=$HTTP_POST_VARS['p']; //echo $S_pass; session_register('S_userk'); session_register('S_passk'); include 'http://1.1.1.1/membership/login.php?g=0'; ? login.php: define(HOST,localhost);