Jump to content

Session Error


Guest PcGamerz13

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
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.