NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions help

Nasir Zubair lists at ny-tech.net
Fri Sep 12 11:50:18 EDT 2003


Think the problem was solved. However, the easiest way to solve it is to
create "tmp" directory in your "C:" drive. C:\tmp  maps to /tmp

- Nasir

-----Original Message-----
From: Peter Lehrer [mailto:pl at eskimo.com] 
Sent: Friday, September 12, 2003 10:14 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Sessions help


On Thu, 11 Sep 2003, John W. Markert wrote:

You have to specify your session directory in your php.ini file which should
reside in your windows directory.

Peter Lehrer

> When I execute the following code:
>
> --------------
>
> <?php
> $retStat = session_start();
> echo "retStat is: $retStat";
> ?>
>
> --------------
>
> I get the following error:
>
> --------------------------------
>
>
> Warning: session_start() [function.session-start]: 
> open(/tmp\sess_216759f1842cd310eb16bf6de9c5ad60, O_RDWR) failed: No 
> such file or directory (2) in c:\program files\apache 
> group\apache\htdocs\test\session1.php on line 2
>
> Warning: session_start() [function.session-start]: Cannot send session 
> cookie - headers already sent by (output started at c:\program 
> files\apache group\apache\htdocs\test\session1.php:2) in c:\program 
> files\apache group\apache\htdocs\test\session1.php on line 2
>
> Warning: session_start() [function.session-start]: Cannot send session 
> cache limiter - headers already sent (output started at c:\program 
> files\apache group\apache\htdocs\test\session1.php:2) in c:\program
files\apache group\apache\htdocs\test\session1.php on line 2 retStat is: 1
> Warning: Unknown(): open(/tmp\sess_216759f1842cd310eb16bf6de9c5ad60,
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
> ----------------------------
>
> Do I interpret this as I am missing a /tmp directory? If so, what is 
> that a subdirectory of?
>
> Thanks,
>
> John
>
> ___________________________________________
>
> John W. Markert
> 14 Joanna Way
> Kinnelon, NJ 07405
> Phone: (973)838-8956
> Cell: (201)788-1740
> Fax: (973)838-4561
> email: markert at optonline.net
>

_______________________________________________
talk mailing list
talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk





More information about the talk mailing list