Home > Archive > PHP Programming > December 2004 > Session problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| John Victor 2004-12-26, 3:55 am |
| I've built a site that uses sessions, and it was working fine. Now it's a
couple of months later and I have to do some more work, but starting
sessions is now bringing up errors, when before they worked fine.
I start my page by calling session_start() as normal, but now I get the
following errors:
Warning: session_start(): open(/ tmp\sess_310a566d44f545a2e3b5a4b152d331c
a,
O_RDWR) failed: No such file or directory (2) in
c:\public_html\login\login.php on line 2
Warning: session_start(): Cannot send session cookie - headers already sent
by (output started at c:\public_html\login\login.php:2) in
c:\public_html\login\login.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at c:\public_html\login\login.php:2) in
c:\public_html\login\login.php on line 2
Cannot connect to DTL data base management system!
Warning: Unknown(): open(/ tmp\sess_310a566d44f545a2e3b5a4b152d331c
a, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0
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
I don't belive any changes have been made to the apache server
configuration, nor have the versions of apache or PHP been changed. Any
ideas? Thanks.
--
John Victor
| |
| Ken Robinson 2004-12-26, 3:55 am |
| John Victor wrote:
> I've built a site that uses sessions, and it was working fine. Now
it's a
> couple of months later and I have to do some more work, but starting
> sessions is now bringing up errors, when before they worked fine.
>
> I start my page by calling session_start() as normal, but now I get
the
> following errors:
>
> Warning: session_start():
open(/ tmp\sess_310a566d44f545a2e3b5a4b152d331c
a,
> O_RDWR) failed: No such file or directory (2) in
> c:\public_html\login\login.php on line 2
> Warning: session_start(): Cannot send session cookie - headers
already sent
> by (output started at c:\public_html\login\login.php:2) in
> c:\public_html\login\login.php on line 2
Only the first error is relevant. The rest are coming out because of
the first one.
Make sure you have a folder called "/tmp" on your "c:" device, that it
is writable by everyone, and that your "c:" device is not full. Once
you get the "c:/tmp" directory back, your code should work again.
Ken
| |
| John Victor 2004-12-26, 3:55 am |
| That did it. The tmp folder had been removed. Thanks for the help.
--
John Victor
wiegeabo@pacbell.net
"Ken Robinson" <kenrbnsn@rbnsn.com> wrote in message
news:1104022245.454094.259770@c13g2000cwb.googlegroups.com...
> John Victor wrote:
> it's a
> the
> open(/ tmp\sess_310a566d44f545a2e3b5a4b152d331c
a,
> already sent
>
> Only the first error is relevant. The rest are coming out because of
> the first one.
>
> Make sure you have a folder called "/tmp" on your "c:" device, that it
> is writable by everyone, and that your "c:" device is not full. Once
> you get the "c:/tmp" directory back, your code should work again.
>
> Ken
>
|
|
|
|
|