Help Help Help Pleeease!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
farid
Forum Commoner
Posts: 54
Joined: Thu Nov 11, 2004 4:20 pm
Location: Mexico

Help Help Help Pleeease!!

Post by farid »

Hi y'all!!

Well I have a Microsoft server which has PHP, and that is used by several people, but the thing is that the Variable SESSIONS DOES NOT WOORK any more, aaargh!! And they did, so I don't know what thing has been changed on the ini file.

I really hope someone can help me!!

Thanks in advance!! :oops: :oops:
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Show us some code please. Are you using session_start()?
User avatar
farid
Forum Commoner
Posts: 54
Joined: Thu Nov 11, 2004 4:20 pm
Location: Mexico

Post by farid »

Yeah, I am using the session_start(), but the problem is not the code, cause I verify it in another serevr and it works there, I believe its the configuration of the commands of the ini file, if I am not wrong that is the one when you get the phpinfo(), but I do not know if the variables are correct.

If you want to I'll send you how is my phpinfo.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Do you have the following in you phpinfo()?

Code: Select all

session
Session Support 	enabled
User avatar
farid
Forum Commoner
Posts: 54
Joined: Thu Nov 11, 2004 4:20 pm
Location: Mexico

Post by farid »

Yeah, the following are the variables in phpinfo

Session Support enabled
Registered save handlers files user

Directive --------------------- Local Value ------------ Master Value
session.auto_start ------------- On ----------------------- On
session.bug_compat_42 ---------- On ----------------------- On
session.bug_compat_warn -------- On ----------------------- On
session.cache_expire ---------- 180 ----------------------- 180
session.cache_limiter ---------- nocache ------------------- nocache
session.cookie_domain ---------- no value ------------------ no value
session.cookie_lifetime -------- 600 ----------------------- 600
session.cookie_path ------------ / ----------------------- /
session.cookie_secure ---------- Off ----------------------- Off
session.entropy_file ----------- no value ------------------ no value
session.entropy_length --------- 0 ------------------------- 0
session.gc_divisor ------------- 100 ----------------------- 100
session.gc_maxlifetime --------- 600 ----------------------- 600
session.gc_probability --------- 1 ----------------------- 1
session.name ------------------ PHPSESSID ----------------- PHPSESSID
session.referer_check ---------- no value ------------------ no value
session.save_handler ---------- files --------------------- files
session.save_path -------------- C:\PHP\sessiondata ------ C:\PHP\sessiondata
session.serialize_handler ------ php ----------------------- php
session.use_cookies ---------- On ----------------------- On
session.use_only_cookies ------- Off ----------------------- Off
session.use_trans_sid ---------- Off ----------------------- Off
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Is the sessions directory writable to PHP? I had this issue when I changed something and I was using a windows box with PHP too... the temporary folder (custom location) wasn't writable to PHP.
User avatar
farid
Forum Commoner
Posts: 54
Joined: Thu Nov 11, 2004 4:20 pm
Location: Mexico

Post by farid »

In what php directory do you refer?? :cry:
User avatar
farid
Forum Commoner
Posts: 54
Joined: Thu Nov 11, 2004 4:20 pm
Location: Mexico

Post by farid »

By the way, in some IP's in a different segment it do works now, but in any other that does not belong to such segment it does not works, (this is real frustrating :oops: :cry: )
Post Reply