Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter MrHjS

    (@mrhjs)

    So, I deactivated all plugins, but the problem is still there on this website.
    I also tried the standard WordPress Theme but the problem that the session in my external php file won’t work still persists.

    Thread Starter MrHjS

    (@mrhjs)

    At the moment, I am cloning the wordpress directory to a subdomain in order to be able to troubleshoot as recommended without affecting the homepage.

    In the meantime I checked a second wordpress page where we also include an external php file which uses sessions and although we also use v 6.0.2 there, the php file included in a wordpress page works without problems. So I guess it’s not only 6.0.2 but rather a mixture of the new version and some of the plugins we use or so…

    Thread Starter MrHjS

    (@mrhjs)

    I think this is a misunderstanding.
    I am not talking about WordPress’ own login system.
    We built a separate login page which uses its own sessions. And for some reason suddenly the sessions that are used in our own php files don’t work when I include these php files in a WordPress page.

    Thread Starter MrHjS

    (@mrhjs)

    Thank you for your reply.
    However, in the mean time I tried other plugins, e.g. Insert PHP Code Snippet.

    It doesn’t work either. The include-command works as the PHP file is included and displayed on the website. But the session that is used inside this included PHP file doesn’t work which means all of our own programs won’t work any longer in the WordPress site.

    For example: We have a PHP file which provides a login form. This is included and I can enter the login data. When I click on “Login” and the credentials are correct, it sets a Session variable and then reloads itself and checks if the Session is set, if so, it shows a welcome message. But now it never shows the welcome message because the session variable is not set because the session doesn’t work any more. It seems as if WordPress blocks that session, I don’t know.
    If I open the PHP file that I include directly in the browser, everything works as expected (also the session) – but I need it to work inside the wordpress page (it’s worked for the past ten years).

    Thread Starter MrHjS

    (@mrhjs)

    Anyone?

    I have the exact same issue. This all happened after upgrading WordPress to the latest version.

    Must have something to do with the way “<” is handled, because it gets replaced by “>” which explains the unexpected “&”.

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)