php.ini configuration to allow Session

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
Hi guys;

Since I always got error with my login page, I suspected there is something wrong with my "php.ini" file. Could someone please show me the right configuration of this file so that it will allow session.

For your information I'm using php4 and apache running on WinXP

Thanks and regards
 
Code:
[Session]
session.save_handler      = files   
session.save_path         = C:\WINDOWS\Temp
session.use_cookies       = 1       
session.name              = PHPSESSID  
session.auto_start        = On
session.cookie_lifetime   = 0
session.cookie_path       = /       
session.cookie_domain     =        
session.serialize_handler = php    
session.gc_probability    = 1       
session.gc_maxlifetime    = 1440
session.referer_check     =
session.entropy_length    = 0
session.entropy_file      =

This is my php.ini looks like. I don't know the correct path for "session.save_path"; because it still won't work with path set to C:\WINDOWS\Temp.

Thanks in advance
 
your mistakes
Êîä:

[Session]
session.save_handler = files
session.save_path = C:\WINDOWS\Temp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = On
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =



-=)
session.save_path = C:/WINDOWS/Temp
 
I think your config is already right
besides, make sure the path C:\WINDOWS\Temp exists.
In windows, we use \ intead of / under unix for paths

You'd better check your code intead of your config file



8O
 
Back
Top