On donderdag 4 december 2003 10:53 Binay told the butterflies:
> Yes AllowOverride is set to None ....
> 
> But then i can not change it as i don have access .. wht
> other method/solution i can look except ini_set then ??
> 
> ----- Original Message -----
> From: "Wouter van Vliet" <[EMAIL PROTECTED]>
> To: "'Binay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, December 04, 2003 3:08 PM
> Subject: RE: [PHP] SID problem
> 
> 
> > On donderdag 4 december 2003 10:36 Binay told the butterflies:
> > > Hi everybody,
> > > 
> > > I m trying to disable/off  "session.use_trans_sid".
> > > I don have access to php.ini file... hence trying to unset in the
> > > php scripts and .htaccess file .
> > > 
> > > While this works in php script i.e
> > > ini_set("session.use_trans_sid","0");
> > > 
> > > but in .htaccess it seems it doesn't i.e php_flag
> > > session.use_trans_sid off ... This doesn't work..
> > > 
> > > My .htaccess file contain only above statement and nothing else
> > > ... 
> > > 
> > > I can not go for ini_set as it needs to be done in all the file
> > > ... so .htaccess is the right solution for me .....
> > > but it doesn't work in .htaccess ...
> > > 
> > > What may be the possible reason/causes??
> > > 
> > > Please help me ..
> > > 
> > > PHP 4.2.2
> > > 
> > > Thanks in advance
> > > 
> > > Binay
> > 
> > Reason is possibly/most likely that "AllowOverride" is disabled on
> > the server.

I'm sorry, but there are no other options. You can, though, ask your hosting
provider to change the setting in the "httpd.conf" file for you. Or else I'd
advice you to create one file to include in all other files, which sets
global options.

< global.inc.php >
<?php
ini_set('session.use_trans_sid", '0');

// I've got my database connection settings and some other
// global calls also in this file.
?>

< any-other-file.php >
<?php
include('global.inc.php');

(.. the rest of your code ..)
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to