Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

php.ini configuration to allow Session

Codes here !

Moderators: macek, egami, gesf

php.ini configuration to allow Session

Postby wmdrumaizi » Thu Apr 24, 2003 1:56 am

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
Last edited by wmdrumaizi on Thu Apr 24, 2003 2:36 am, edited 1 time in total.
User avatar
wmdrumaizi
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Jan 23, 2003 5:15 pm
Location: Malaysia

Postby Oleg Butuzov » Thu Apr 24, 2003 2:23 am

just write a parth to sesion data...
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby wmdrumaizi » Thu Apr 24, 2003 5:30 pm

Code: Select all
[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
User avatar
wmdrumaizi
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Jan 23, 2003 5:15 pm
Location: Malaysia

Postby Oleg Butuzov » Thu Apr 24, 2003 8:51 pm

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
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby quantm » Wed May 14, 2003 7:01 pm

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
User avatar
quantm
New php-forum User
New php-forum User
 
Posts: 7
Joined: Mon Apr 07, 2003 8:00 pm
Location: Vietnam


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.