Fork me on GitHub

mod_rewrite and subfolders | Problem with SessionUtil  Bottom

  • Hi,

    I am using mod_rewrite and map Subfolders to my Postnuke installation.


    http://webpage/aaa/bbb -> index.php?module=abc&func=cde&param1=aaa&param2=bbb


    Until now this worked then intranet mode was enabled. In the new release of Zikula i realized that the following code is commented out in the SessionUtil File:


    Code

    // domain and path settings for session cookie
    // if (pnConfigGetVar('intranet') == false) {
    // Cookie path
    ini_set('session.cookie_path', $path);



    The effect is that the cookie_path is always set to $path ($path = pnGetBaseURI());


    When i now access a URL like http://webpage/aaa/bbb the cookie would be set to /aaa/bbb. Users get a new cookie for this folder and automatically become logged out.


    Can this be fixed or is there a good reason for this behavior?


    Best regards


    Nicolas





    edited by: nicolas79, Jun 22, 2008 - 08:11 AM
  • Haven't checked the eventual implementation, but I've got a strong suspicion it has to do with this: http://community.zik…ewtopic&topic=54303

    In other words: yes, I think there is a good reason

This list is based on users active over the last 60 minutes.