Hello Greg,
Thanks for reply, I did try
ini_set ( "session.auto_start", "1"); and it set the session.auto_start to
On on my configuration, however the rest of the users on that server had
auto_start off.
This didn't solve the problem, should I try to access .htaccess? I presume
it will affect all the sites on that server, right?
The problem continues, I run the logout script each time the user leaves the
admin site:
<?
$_SESSION['validlogin']="";
$_SESSION['username']="";
$_SESSION['password']="";
unset($_SESSION['validlogin']);
unset($_SESSION['username']);
unset($_SESSION['password']);
session_unset();
print("username=".$_SESSION['username']);
print("password=".$_SESSION['password']);

if(session_id()){
session_destroy();}
?>

And when the user tries to enter the admin panel again and log in, the
following script runs:
<?
...
session_start();
                          
$_SESSION['validlogin']=true;
$_SESSION['username']=$username;
$_SESSION['password']=$password;

?>

However when the user logs out and the first script runs, if that user tries
to log in again with a different account, the session is started, but the
username and password variables take the first user's values, they're not
overriden.
Any idea?
Thanks a lot in advance.
Lizet

-----Original Message-----
From: Greg Donald [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 25, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] @session_start generates a new session_id


On Mon, 25 Oct 2004 15:59:18 -0400, Lizet Peņa de Sola <[EMAIL PROTECTED]>
wrote:
> 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.

.htaccess

php_flag session.auto_start on


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
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