Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest PcGamerz13

Session Error

Recommended Posts

Guest PcGamerz13
When I Use This
[code]<?php
session_start();
?>[/code]

I get this error
Warning: session_start() [function.session-start]: open(../tmp\sess_98e8b2237f9169a0b501698d87ec1f78, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\test\index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\test\index.php:2) in C:\wamp\www\test\index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\test\index.php:2) in C:\wamp\www\test\index.php on line 2

Share this post


Link to post
Share on other sites
Guest PcGamerz13
What must I fix in the php.ini to fix this?

Share this post


Link to post
Share on other sites
have your changed a setting in the php.ini callled [b]session.save_path[/b]? if you have what have you changed it to as php is trying to use the session file which it uses to keep track of being added in the session, but php cant access this file and so you're getting the error message(s) above.

For now clear what ever you have set in the [b]session.save_path[/b] directive in the php.ini file.

Save the php.ini and restart Apache or what ever webserver you're using. Try using sessions now.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.