NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions help

Christopher Hendry chendry at nyc.rr.com
Thu Sep 11 21:45:34 EDT 2003


sounds like you're on the right track, perhaps if you set your
session.save_path in php.ini to an actual directory on your C drive, that'll
fix things up...ie, session.save_path="c:/tmp" (making sure c:/tmp exists,
of course)

C
  -----Original Message-----
  From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On
Behalf Of John W. Markert
  Sent: Thursday, September 11, 2003 8:52 PM
  To: talk at lists.nyphp.org
  Subject: [nycphp-talk] Sessions help


  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030911/d8747625/attachment.html>


More information about the talk mailing list