Re: Session problems
| From: | Johannes Janson | Date: | Wed, 24 Jan 2001 11:06:04 +0000 |
| Subject: | Re: Session problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36395@lists.php.net to get a copy of this message | ||
I don't know if it'll help but here my bit of the php.ini:
session.save_handler = files ; handler used to store/retrieve data
session.save_path = C:\Programme\Apache
Group\Apache\cgi-bin\php4\sessiondata ; argument passed to
save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies = 1 ; whether to use cookies
session.name = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start = 0 ; initialize session on request startup
session.cookie_lifetime = 0 ; lifetime in seconds of cookie
; or if 0, until browser is restarted
try this test-script:
<?
session_start();
session_register("SESSION");
if (! isset($SESSION)) {
$SESSION["count"] = 0;
echo "<li>Counter initialized, please reload this page to see it
increment";
} else {
echo "<li>Waking up session $PHPSESSID";
$SESSION["count"]++;
}
echo "<li>The counter is now $SESSION[count] ";
?>
johannes
"Jimmy Bäckström" <broder_b@chello.se> schrieb im Newsbeitrag
news:007801c0859d$8ef1e0f0$554d59d5@broder...
Yeah I used a path name with '\' instead of '/' but it still does not work.
Help!
"Johannes Janson" <johannes.janson@gmx.de> wrote in message
news:94kpfm$4cc$1@toye.p.sourceforge.net...
> you have to set the 'session.save_path' in your php.ini.
> be careful with the slashes you use. as you can see from
> the error msg by default it's '/' but windows uses '\'.
>
> good luck
> Johannes
>
>
> "Jimmy Bäckström" <broder_b@chello.se> schrieb im Newsbeitrag
> news:001201c08564$f7398660$554d59d5@broder...
> Yo!
> I'm playing a little bit with sessions for the moment and I get a really
> scary errormessage:
>
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed:
m
> (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5
>
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed:
m
> (2) in Unknown on line 0
>
> Warning: 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 understand that there is a folder missing somewhere (tmp) and I tried to
> create one in the apache directory, but it still does not work. I'm using
> Win2k proffesional with an apache webserver and I don't have a clue what
> changes I should do to php.ini.
> Please help!
> /Broder B
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>