Koozali.org: home of the SME Server

session.use_trans_sid

Offline flaviove

  • *
  • 20
  • +0/-0
session.use_trans_sid
« on: August 04, 2009, 11:02:03 PM »
Hi All,

Is it possible to desable "session.use_trans_sid" on a SME Server 8.0 beta4?
If so, what should I do?
Thanks in advance,

Flávio Veras

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: session.use_trans_sid
« Reply #1 on: August 05, 2009, 07:38:49 AM »
hi

you could start telling us WHERE session.use_trans_sid is used..

ciao
Stefano

Offline piran

  • *****
  • 502
  • +0/-0
Re: session.use_trans_sid
« Reply #2 on: August 05, 2009, 11:28:35 AM »
You, too, could start... by using search or Google:
http://www.olate.co.uk/articles/252
It helps shutting off PHP's session IDs from bots and having
silly code strings improperly being listed in search engines.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: session.use_trans_sid
« Reply #3 on: August 05, 2009, 11:49:44 AM »
You, too, could start... by using search or Google:
http://www.olate.co.uk/articles/252
It helps shutting off PHP's session IDs from bots and having
silly code strings improperly being listed in search engines.
I suggest we keep it friendly here. From the context of OP's question it is not clear to everybody that it is PHP related here. If you desire an answer to questions it is best to describe your question as specific as possible. Stefano was only asking for more details here.

Now over to a answer of the original question:
If you want to change this setting on your server you will have to create a custom template fragment:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/template/etc/php.in/80ModuleSettings16Session /etc/e-smith/templates-custom/etc/php.ini
Now we need to modify the copied template fragment. You can use any editor but we will assume nano here:
Code: [Select]
nano /etc/e-smith/template-custom/etc/php.in/80ModuleSettings16SessionNow edit the last line to read:
Code: [Select]
80ModuleSettings16Session:session.use_trans_sid                  = 0Save your file, in the case you use nano, press Ctrl+x, and choose Y to save.
Last steps we need to do is regenerate the configuration file and reload it:
Code: [Select]
expand-template /etc/php.ini
sv t httpd-e-smith
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: session.use_trans_sid
« Reply #4 on: August 05, 2009, 11:58:44 AM »
You, too, could start... by using search or Google:
http://www.olate.co.uk/articles/252

interesting.. so I should search with google?
ROTFL..

normally I use my crystall ball, but I'm moving to a new house and it's somewhere, in a box..

I suggest you and the OP to read carefully this before posting..

Quote
It helps shutting off PHP's session IDs from bots and having
silly code strings improperly being listed in search engines.

thank you for the explanation..

as php.ini is a templated file, create a copy of the fragment that contains that value (/etc/e-smith/templates/etc/php.ini/80ModuleSettings16Session) into the same directory under the templates-custom tree, modify it, save it, expand php.ini, restart apache

that's all

next time, please, help us to help you, thank you

Stefano

edit: cactus.. you're too fast :-)

Offline piran

  • *****
  • 502
  • +0/-0
Re: session.use_trans_sid
« Reply #5 on: August 05, 2009, 12:08:51 PM »
interesting.. so I should search with google?
ROTFL..
Exactly. I was being wry.

Cactus: Wry, not unfriendly.
I try not to lecture or otherwise be patronising.
Is SME8 really ready for such CMS-orientated stuff?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: session.use_trans_sid
« Reply #6 on: August 05, 2009, 12:20:48 PM »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline flaviove

  • *
  • 20
  • +0/-0
Re: session.use_trans_sid
« Reply #7 on: August 05, 2009, 01:11:50 PM »
Hi Everyboby.

Thank you everybody for the fast replay and orientations.
I was just installing in a SMEServer 8b4 box "horde groupware v1.2.3", before install it they ask to run "test.php". I did it and one of the item on a check list was "disable session.use_trans_sid" and I didn´t find anywhere how to do this.

Best regards,
Flávio Veras

Offline piran

  • *****
  • 502
  • +0/-0
Re: session.use_trans_sid
« Reply #8 on: August 05, 2009, 01:18:43 PM »
<?php ini_set('session.use_trans_sid', 0); ?>
YMMV, I hope you are only testing...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: session.use_trans_sid
« Reply #9 on: August 05, 2009, 01:20:16 PM »
<?php ini_set('session.use_trans_sid', 0); ?>
YMMV, I hope you are only testing...
Yes that can be done as well, but is not the most effective way of doing so, see my earlier instructions as that will only be applicable to code you write yourself not very handy when installing packages like horde in case of the OP.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline piran

  • *****
  • 502
  • +0/-0
Re: session.use_trans_sid
« Reply #10 on: August 05, 2009, 01:38:40 PM »
What would probably be the most useful fact to the OP
might be an assertion that SME8 is ready for Horde... or not.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: session.use_trans_sid
« Reply #11 on: August 05, 2009, 01:41:40 PM »
What would probably be the most useful fact to the OP
might be an assertion that SME8 is ready for Horde... or not.
I am not sure I understand what you mean with that. SME 8 comes with horde installed, aprt from that that does not seem to be OP's question.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline piran

  • *****
  • 502
  • +0/-0
Re: session.use_trans_sid
« Reply #12 on: August 05, 2009, 01:55:27 PM »
I am not sure I understand what you mean with that. SME 8 comes with horde installed, aprt from that that does not seem to be OP's question.
My assumption was that OP meant Kronolith (which uses Horde etc).
Anyway the OP can speak for themselves, hopefully we've put them
on some sort of resolution path or 'orientation';~)