Solved

sessions problem

Posted on 2002-05-21
3
314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 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