php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18461 No Sessions save
Submitted: 2002-07-21 15:03 UTC Modified: 2002-07-22 20:57 UTC
From: Streamer2000 at gmx dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.1 OS: Windows 2000
Private report: No CVE-ID: None
 [2002-07-21 15:03 UTC] Streamer2000 at gmx dot de
The script is:
	session_name("ID");
	session_save_path("sessions");
	session_start();
	session_write_close();
	if ( !isset($username) ) session_destroy();

first error for session_write_close():
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (sessions) in c:\server\xmlbb\board.php on line 6

second error for session_destroy():
Warning: Trying to destroy uninitialized session in c:\server\xmlbb\board.php on line 7

With an earlier version of php the script was running fine. Now with php 4.2.1 i get these errors. The Apache Server version is 1.3.26

my server info: http://visiontec.homeip.net
the script on my server: http://visiontec.homeip.net/xmlbb/board.php

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 12:29 UTC] Streamer2000 at gmx dot de
The problem is solved! Since Im no longer using the session_name("ID"); function everything works fine...
 [2002-07-22 20:57 UTC] sniper@php.net
setting a save path like that will never work..
It has nothing to do with the session_name()

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 19:01:31 2024 UTC