How can I set session_auto_start On, I have a similar problem and I think
it's because my web hosting has that feature off.



-----Original Message-----
From: Sadeq Naqashzade [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 19, 2004 11:47 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] @session_start generates a new session_id


Hi,
Check your PHP config file. You may enable auto session start. I think this
is the reasone of problem.

Sadeq


On Tue, 19 Oct 2004 18:21:29 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi Matt,
> 
> > > @session_start();
> > > session_name("userauth");
> > > $_SESSION['SESS_CUS'] = $user_id;
> 
> > I am not 100% sure what the problem is, but if you are trying to 
> > change the session name to userauth, I think you need to do that 
> > before session_start
> 
> session_name() works ok so far.
> 
> For example:
> <?
> @session_start;
> $session = session_id();  /* index.php */ $_SESSION['SESS_CUS'] == 
> $user_id; echo $session;
> ?>
> 
> OUTPUT in the browser:
> 
> 34f321149ee49d20e0e223f3020c1f77
> 
> In the case a new page is loaded it changes to a new value:
> 
> <?
> $session = session_id();  /* userauth.php */
> echo "PHPSESSID: $session";
> echo "SESSION:".$_SESSION['SESS_CUS'];
> ?>
> 
> OUTPUT in the browser:
> 
> PHPSESSID: b65de73df8d327a4e15627ccfd14968d
> SESSION:
> 
> A new request over http generates a new session and $_SESSION['XYZ'] 
> is not available anymore.
> 
> --
> Best Regards,
> 
> Mark
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
-------------------------------------
Yazd, 8917954894

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

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

Reply via email to