Current location: Hot Scripts Forums » Programming Languages » PHP » Sessions error (Apache)


Sessions error (Apache)

Reply
  #1 (permalink)  
Old 08-15-04, 12:56 AM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
Question Sessions error (Apache)

i have a big problem using session in apache , if i downloaded anyscript uses sessions an error message appears saying :


Warning: session_start(): open(/tmp\sess_754a46ef6a80ea23d945d1e21f35f112, O_RDWR) failed: No such file or directory (2) in D:\apache\htdocs\scripts\ml_protector\admin\index. php on line 27

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at D:\apache\htdocs\scripts\ml_protector\admin\index. php:27) in D:\apache\htdocs\scripts\ml_protector\admin\index. php on line 27

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\apache\htdocs\scripts\ml_protector\admin\index. php:27) in D:\apache\htdocs\scripts\ml_protector\admin\index. php on line 27



and i'm working on Apache


so if any one knows a way to solve this problem please tell me...
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-15-04, 02:57 AM
Zapatista Zapatista is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I have that same problem too. I'm curious to see what is causing that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 08-15-04, 08:41 AM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
I had that myself on my PC, finally realized that I needed the "tmp" directory to store sessions data placed directly under the "C:" drive, i.e. "My Computer > C: > tmp". Hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-15-04, 10:06 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
I had that problem on my local test server, it was simple to solve.
I create a temp and I frogot the other folder name (something for upload? iunno, either way) and then i set the path to the folder in my php.ini, i cannot remember correctly because i had to do no such thing with PHP5.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 08-18-04, 07:24 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
Wink

i finally got the solution , here is it
we'll use c: to save sessions files

1- open apache/php/php.ini
2- search for " session.save_path= /tmp "
3- replace "/tmp" with "c:/tmp"
4- create these folders( tmp , sessiondata , uploadtemp) on the c:
thats all , i think it will work corectly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The power of sessions? perleo PHP 3 07-25-05 07:32 AM
sessions mivec PHP 0 04-12-04 07:51 AM
Multiple sessions Kaanha PHP 2 01-16-04 11:39 AM
PHP sessions mno HTML/XHTML/XML 3 11-28-03 01:49 PM
PHP & sessions, why won't it work? TinnyFusion PHP 1 10-04-03 02:51 PM


All times are GMT -5. The time now is 10:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.