Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Php Session help needed

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch

khuldun

Established Member
Impact
18
Hi

I need help with my home php enabled webserver. There are a few scripts i would like to test but they have the session system, i dont have a clue what is that and it usually gives me an error, so i quite handicapped, please help.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Please post one of the error strings you get.
 
0
•••
Warning: Unknown(): open(/tmp\sess_db465e8345e7341347731f90117aaef5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

another one....

Warning: session_start(): open(/tmp\sess_db465e8345e7341347731f90117aaef5, O_RDWR) failed: No such file or directory (2) in E:\webdocs\wallpaper\rheader.php on line 2

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at E:\webdocs\wallpaper\rheader.php:2) in E:\webdocs\wallpaper\rheader.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\webdocs\wallpaper\rheader.php:2) in E:\webdocs\wallpaper\rheader.php on line 2
 
0
•••
khuldun said:
Warning: Unknown(): open(/tmp\sess_db465e8345e7341347731f90117aaef5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
You're getting this error because PHP is looking for the /tmp dir on your machine, which at this point it doesnt look like its there.
You need to create a tmp directory and set your php.ini to point to this dir.

edit your php.ini
changing this:
[ Session ]
session.save_path =/tmp
to this something like this:
[ Session ]
session.save_path = e:\webdocs\tmp
or where ever you want the tmp to be saved at for the session files.
 
0
•••
I managed it myself in the end, was having trouble changing the php.ini file, i kept changing the one lying in the windws folder, in the end i had to change the one in the root directory, thanks anyways!!
 
0
•••
khuldun said:
I managed it myself in the end, was having trouble changing the php.ini file, i kept changing the one lying in the windws folder, in the end i had to change the one in the root directory, thanks anyways!!

Sorry, thats what I meant, I should have specified, sorry, glad you got it all worked out ;)
 
0
•••
OulZac said:
khuldun said:
I managed it myself in the end, was having trouble changing the php.ini file, i kept changing the one lying in the windws folder, in the end i had to change the one in the root directory, thanks anyways!!

Sorry, thats what I meant, I should have specified, sorry, glad you got it all worked out ;)


No problem! Thanks once again!
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Portfolio sites: new ways to sort, filter and group your domains
Your public portfolio page has a few new tools for visitors. Portfolio: Newest first The sort menu now has "Newest first". It shows the...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back