By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,041 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,041 IT Pros & Developers. It's quick & easy.

session settings in php.ini

P: n/a
I may have some misundertanding /lack of information, but I have always
wondered this:

Why there must be THREE setup lines concernig cookie/transid thing:

session.use_cookies
session.use_only_cookies
session.use_trans_id

That makes 2*2*2= 6 combinations. Since this is the case, one would suppose
all 6 are meaningful and sensible.

But why I feel that session business should in practise use EITHER cookies
OR trans_id? Not both at the same time and not anything(what) else also. In
that case only one line was enough and ANYWAY, one line would eliminate
impossible combinations.

why have not like: session_policy = "cookies" // options: 'cookies',
'trans_id', 'both'

What is it that I don't get? What is it that I have misunderstood? Or is
there some historical reasons. Please, list your opinion of MEANINFUL
combinations of those three settings. Thanks for answers, I believe this can
enlighten others too.

Feb 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
P Pulkkinen wrote:
I may have some misundertanding /lack of information, but I have always
wondered this:

Why there must be THREE setup lines concernig cookie/transid thing:

session.use_cookies
session.use_only_cookies
session.use_trans_id

That makes 2*2*2= 6 combinations. Since this is the case, one would
suppose all 6 are meaningful and sensible.
Make that 8. :P

>
But why I feel that session business should in practise use EITHER cookies
OR trans_id? Not both at the same time and not anything(what) else also.
In that case only one line was enough and ANYWAY, one line would eliminate
impossible combinations.

why have not like: session_policy = "cookies" // options: 'cookies',
'trans_id', 'both'

What is it that I don't get? What is it that I have misunderstood? Or is
there some historical reasons. Please, list your opinion of MEANINFUL
combinations of those three settings. Thanks for answers, I believe this
can enlighten others too.
Yes, like me. I was/am also confused by this setup.
It could be a lot clearer. Probably this setup is there for
backwardcompatibility reasons.

I didn't try all combinations, but this is how I think it works:

session.use_cookies
defines if cookies are used at all. If yes, a cookie is *possibly* used. In
false, a cookie is never used.

session.use_only_cookies
forces the use of cookies. The next setting is of no importance in that
case.

session.use_trans_id
If set to true, and session.use_only_cookies is set to false, url-rewriting
will be used if no cookiesupport is found.

At least that is what I found when using sessions. You milage may vary, etc,
etc..
I agree it is messy and these settings could use a little scrubbing.

Regards,
Erwin Moller
Feb 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.