RE: @session_start generates a new session_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:sadeqn@xxxxxxxxx] 
Sent: Tuesday, October 19, 2004 11:47 PM
To: mark-walter@xxxxxxxxxxx
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  @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, mark-walter@xxxxxxxxxxx
<mark-walter@xxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux