Solved

sessions problem

Posted on 2002-05-21
3
281 Views
Last Modified: 2011-09-20
hello

I'm running 2 php applications on the same server.
In the php.ini file,
the first one need "session.save_handler = user"
and the second one need "session.save_handler = file"
to work properly.

How can I solve this problem ?
Is there a way to have a php.ini file per application ?
Or is it a way to change the save_handler at runtime ?

Thx
0
Comment
Question by:Chroma
3 Comments
 
LVL 2

Accepted Solution

by:
mirtol earned 200 total points
ID: 7025040
If one or both of them is/are an Apache webserver then you can use the php_value directive in the apache config file.

As far as I know, it only looks for php.ini in the normal dile search method so you just need to make sure the different instances find different php.ini files (for example, you could have two identical php directories with the php program but differing php.ini files)
0
 
LVL 6

Expert Comment

by:andreif
ID: 7026317
Agree with Mirtol, you can overwrite php.ini settings using apache conf or .htaccess

Examples:

# on/off values

php_flag register_globals off
php_flag track_vars on
php_flag magic_quotes_gpc off

# string values

php_value include_path ".:/home/myincdir/"
0
 
LVL 1

Author Comment

by:Chroma
ID: 7027887
php_value is just what I was looking for.

Thanks a lot
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now