[PHP] Session_Start Problem (Fatal Error)

2004-07-09 Thread webmaster
I'm using Mambo Open Source CMS to run a site I'm building, and seem to have a
problem logging into the Administration Tool.  It comes up with:

Fatal error: session_start(): Failed to initialize storage module. in
/home/hetbweb/public_html/administrator/index.php on line 64

I've looked at various things that could cause this, and finally contacted my
server support who said:
It's a PHP bug which they still havent fixed as of yet, as soon as the fix
becomes available we will update PHP.
It may be worth looking on the mambo forums as there may be a patch to resolve
this for your script.

Does anyone know about this, and if so, is there a fix or work around or
anything?

Cheers
Nunners

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



[PHP] Session_start() problem

2003-10-01 Thread Jeff McKeon
Hey all, I'm working out of a book teaching myself PHP4 here and I've
got this code from a login web page...

[begin code]
session_start();
if(!isset($userid)) {
login_form();
exit;
}
else {
session_regisister(userid, userpassword);
if(!$username) {
session_unregister(userid);
session_unregister(userpassword);
echo Authorization failed.  . 
 You must enter a valid userid and password
combo.  .
 Click on teh following link to try
again.BR\n;
echo A HREF=\$PHP_SELF\login/ABR;
echo If you do not have login, please contact
Operations to obtain one.br\n;
exit;
}
else echo welcome, $username!;
}
[end code]

The page puts up a for with fields for username, password etc. nothing
crazy, but when I open the page I get the following error displayed
(before data is entered into the form and subitted).

[begin error]
PHP Warning: session_start():
open(/tmp\sess_d7d909aa6e85cf5489a50f6e42f03b12, O_RDWR) failed: No such
file or directory (2) in c:\inetpub\wwwroot\auth_user.php on line 54 PHP
Warning: Unknown(): open(/tmp\sess_d7d909aa6e85cf5489a50f6e42f03b12,
O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp) in
Unknown on line 0 
[end error]

Not sure what I did wrong except to think that PHP is trying to write
the session id file to a directory that doesn't exist /tmp.  This is
running on a MS IIS server.  If I'm correct in my assessment, where do I
set the default location for session data?

Thanks,

Jeff

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



Re: [PHP] Session_start() problem

2003-10-01 Thread CPT John W. Holmes
From: Jeff McKeon [EMAIL PROTECTED]
[snip]
 where do I set the default location for session data?

session.save_path in php.ini

---John Holmes...

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



Re: [PHP] Session_start() problem

2003-10-01 Thread Curt Zirzow
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]):

Not related to your problem but:

   session_regisister(userid, userpassword);
spelling ~~~^^




Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



[PHP] session_start() problem

2001-08-13 Thread Aniceto Lopez

lines in the acceso.php file:

27  session_name(primera);
28  session_start();
29  session_register(sesionvar);
30  $HTTP_SESSION_VARS[sesionvar] = fulanito;

what I get in the browser:

Warning: Cannot send session cookie - headers already sent by (output
started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on
line 28

Warning: Cannot send session cache limiter - headers already sent (output
started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on
line 28

some help please
thanks in advance


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session_start() problem

2001-08-13 Thread Richard Baskett

Did you make sure everything below is BEFORE the html tag?

Also you can just set the variable $sesionvar like this:

$sesionvar = fulanito;
instead of
$HTTP_SESSION_VARS[sesionvar] = fulanito;

 lines in the acceso.php file:
 
 27  session_name(primera);
 28  session_start();
 29  session_register(sesionvar);
 30  $HTTP_SESSION_VARS[sesionvar] = fulanito;
 
 what I get in the browser:
 
 Warning: Cannot send session cookie - headers already sent by (output
 started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on
 line 28
 
 Warning: Cannot send session cache limiter - headers already sent (output
 started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on
 line 28
 
 some help please
 thanks in advance
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session_start problem

2001-01-19 Thread Ignacio Vazquez-Abrams

On Fri, 19 Jan 2001, Markus H. Maussner wrote:

 hi...

 every time i do a session_start();  with php i get in the first two lines
 of the output this

 PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9""Your data  Contact
 LOGOUT
 PHPSESSID=ba606b5a90dbb4410417b4c612aaf1c9""Contact  LOGOUT

 do i do something wrong ? can i put this message somehow off ?

 everything else work fine.. sessions and so.. just this two lines are a
 bit disturbing me...

 markus


Are you using quotes in your A tags?

-- 
Ignacio Vazquez-Abrams  [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]