Menu

reports are losing session

Help
2011-02-19
2013-05-30
  • Erik Rakhorst

    Erik Rakhorst - 2011-02-19

    When I try to create a report, I can only generate the public available reports. Because every time I select a report the session is gone. The login link is visible iso my username.

    I did some investigating and the problems occurs only if the url ends with ".xml".
    When I go back to another page the session is back and I am still logged in.

    I am using version 4.2.4.

    I had some problems with setting read/write access. But when I remove the xml and change reportengine.php to add it after the include. I can access the reports without problems.

    Does anyone have any suggestions?

     
  • ggpauly

    ggpauly - 2011-02-21

    Hi Erik,

    I tried some xml reports.  I'm not sure i'm following you - the reports open up in a new tab on my browser/

    The "old" tab has the setup menu and still has the session.

    Could you be more specific?  Maybe it's a browser issue?

    George

     
  • Erik Rakhorst

    Erik Rakhorst - 2011-02-22

    Hi George,
    I tried both with internet explorer and firefox. Both show the same problems.
    The problem occurs when I select a specific report from the menu. Normally you would get a setup page to setup the report. This is already where the problem occurs. If I click on the report icon the url ends in: reportengine.php?ged=stamboom and I get to the report selection page. The session is still valid.

    If I select a specific report, the url ends in: reportengine.php?ged=stamboom&action=setup&report=reports/ahnentafel.xml
    Note that the last part is ".xml"
    Now I am not logged in anymore. If I selected a report that should only be visible for authenticated users the selection screen is presented. If it is a public report the setup screen is visible but in the header is a "login" link iso my username.

    I investigated some more and if I change the url so the .xml is not at the end, I have no problems with the session. for instance just removing the 'm' from xml is enough. If I change the sequence of the parameters, it also works. for instance if I change the url to: reportengine.php?ged=stamboom&report=reports/ahnentafel.xml&action=setup I have no problems.

    The problem only occurs if the url ends in ".xml"

    Maybe the ".xml" messes with the ability to retrieve the correct cookie?

    Erik

     
  • Erik Rakhorst

    Erik Rakhorst - 2011-02-22

    I found a work around.

    I noticed this only occurs if you select a report from the main menu bar.
    If you select a report from an individuals page the url is extended with the id of that individual.

    I changed the way the url is generated for the main menu bar in such a way that the .xml is not at the end of the url.
    Should I submit a patch? If yes, How should i submit this patch?

    Erik

     
  • Gerry Kroll

    Gerry Kroll - 2011-02-22

    Erik:
    The problem is NOT with PhpGedView.  The Reports feature works for everyone else.

    Please email me:  gkroll at keldine dot ca

    I'll give you a login ID, etc. to my site so that you can see for yourself.

     

Log in to post a comment.