Re: [PHP] Forgoten

2002-11-21 Thread Ernest E Vogelsinger
At 20:57 21.11.2002, Cesar Aracena said:
[snip]
>Warning: open(/tmp\sess_d25ead36103aaf410d8ad254d206ada3, O_RDWR)
>failed: No such file or directory (2) in
>C:\apache\htdocs\joyeriamara\admin\login.php on line 3
[snip] 

On Win32 there is no "/tmp" directory. Configure the session_save_path
variable in php.ini correctly (e.g. session_save_path = C:/) and it will work.


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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




[PHP] Forgoten

2002-11-21 Thread Cesar Aracena
Hi all,

I’m quite rusty with this sessions stuff (just came from vacations) and
have this strange problem with a session I’m trying to build. Along with
that, I’m making my first lines of code with a new portable computer and
maybe PHP or Apache is not well configured… any ideas? The code goes as
follows and the result page is below that:



 0)
{
$row = mysql_fetch_array($result);
$valid_admin = $row['adminid'];
session_register("valid_admin");
header("Location: admin.php");
exit;
}
else
{
header("Location: ../index.html");
exit;
}
}
else
{
header("Location: ../index.html");
exit;
}

?>



Resulta at IE:

Warning: open(/tmp\sess_d25ead36103aaf410d8ad254d206ada3, O_RDWR)
failed: No such file or directory (2) in
C:\apache\htdocs\joyeriamara\admin\login.php on line 3

Warning: Cannot add header information - headers already sent by (output
started at C:\apache\htdocs\joyeriamara\admin\login.php:3) in
C:\apache\htdocs\joyeriamara\admin\login.php on line 16

Warning: open(/tmp\sess_d25ead36103aaf410d8ad254d206ada3, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on
line 0



Any thoughts are welcome and appreciated.

Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina




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