PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 22nd, 2004, 11:30 AM
strawberry1 strawberry1 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 strawberry1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
session configuration problems

Hi everyone!

I am trying to set up some scripts which rely on sessions under PHP 4.3.4.

I have edited php.ini and tried to set session.save_path to several possible destinations (like c:/windows/temp) but I always get warnings that identify that PHP is trying to save the session files under /tmp. Of course, sessions do not work:

Warning: session_start(): open(/tmpsess_ffa1090bd0920f2479449e4b14c0e69f, O_RDWR) failed: No such file or directory (2) in....
....
Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.


And the most interesting: I tried checking wheather php.ini interpreted correctly.
print(ini_get('session.save_path'));
prints the correct path.

Is there some other variable I have to set?

Thank you!

-Yavor

Reply With Quote
  #2  
Old February 22nd, 2004, 11:44 AM
strawberry1 strawberry1 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 strawberry1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: session configuration problems

Hi again!

I got around the problem by creating a folder c:tmp. So the problem is not so critical now.

However, this is only a trick and if someone has an idea why it doesn't work the way it is supposed to, please write!

Bye,
Yavor

Reply With Quote
  #3  
Old February 29th, 2004, 08:03 AM
valgevali valgevali is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Estonia
Posts: 10 valgevali User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: session configuration problems

don't be offended, if this simple tip is not Your case:

If You have php.ini both in c:php and c:windows then it's no use modifing the first one as php always looks for the windows one first. Or on some conf-s it doesn't see the one in c:php at all. So the best practice is to put it in c:windows

Reply With Quote
  #4  
Old February 29th, 2004, 10:22 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: session configuration problems

Hi!

Thanks for the replay valgevali!

The problem was not related to php.ini. The reason for the behaviour was that one of the scripts enforced a custom sessions directory. Originally, I did not know about this (it was not developed by me) and that's why it looked strange to me. I just found that this week.

Bye,
Yavor

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > session configuration problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway