NameSilo

Php Session help needed

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
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
Close
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
Close
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
Close
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
Close
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
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back