session settings in php.ini

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • P Pulkkinen

    session settings in php.ini

    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_coo kies
    session.use_onl y_cookies
    session.use_tra ns_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.





  • Erwin Moller

    #2
    Re: session settings in php.ini

    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_coo kies
    session.use_onl y_cookies
    session.use_tra ns_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
    backwardcompati bility reasons.

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

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

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

    session.use_tra ns_id
    If set to true, and session.use_onl y_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

    Comment

    Working...