Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2004, 08:38 AM
nav nav is offline
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default session

I have just started learning php. I am working through sessions. I have copied example code from 'Beginning PHP, Apache, MySQL Web Development' - Chapter 2 exactly as it is in the book but i get the following errors:

Warning:session_start():open(/tmp\sess_919a8e5436ffe773095f79d46121525d, O_RDWR)failed:No such file or directory in C:\Program Files\Apache Group\Apache2\test\movie1.php on line 2

Warning:session_start():Cannot send session cache limiter - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\test\movie1.php:2)in C:\Program Files\Apache Group\Apache2\test\movie1.php on line 2

Warning: Unknown():open(/tmp\sess_919a8e5436ffe773095f79d46121525d, 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 have created a sessiondata directory thus session.save_path
C:\Documents and Settings\All users\Documents\sessiondata

What do these errors mean? What do i have to do to get rid of them?

Please Help nav



 
Old August 19th, 2004, 01:27 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

It sounds like you modified the value of the session.save_path directive. Did you restart Apache after making those modifications?

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old August 19th, 2004, 02:05 PM
nav nav is offline
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did restart Apache but the same errors occur.

When making changes to the session.save_path i made the changes in the 'php ini recommended' file and 'php configuration Settings' file.

Is it right to make the changes in both files? If not could this be the source of my problems?

Thanks Nav

 
Old August 19th, 2004, 02:11 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Ah, there's the problem.

The ini files in the PHP directory don't do anything, these are predefined configurations. The php.ini file in use resides at C:\Windows\php.ini (or whatever your system root). That's where changes have to be made. :-)

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail





Similar Threads
Thread Thread Starter Forum Replies Last Post
session komalpriya .NET Framework 2.0 4 October 30th, 2007 09:16 AM
session lakshmi devi Classic ASP Basics 4 July 20th, 2006 04:33 AM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM
session help -Dman100- Classic ASP Basics 1 November 29th, 2004 12:45 AM
About Session mani_he Beginning PHP 7 September 18th, 2004 03:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.