• Resolved BigAndini

    (@fr00d)


    Hi,

    for caching purposes I’d like to completely disable the use of session. Therefore I started to analyse where session_start() is called and I found it in custom-sidebars/inc/class-custom-sidebars-explain.php:55. It looks like it is mainly used for cs-explain, but I did not find for what this setting is, yet. The class inc/external/wpmu-lib/inc/class-thelib.php is using a session variable as well but this can be disabled via WDEV_USE_SESSION.

    Is there already a way on how to use custom sidebars without session variables?

    Cheers
    Andi

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Andi,

    I have to consult this question with Custom Sidebars developer – he is not online at the moment, so I’m waiting for his feedback.
    As soon I’ll know more about that I’ll let you knoe.

    kind regards,
    Kasia

    Hi there! Thank you for your patience. This issue should be resolved but if you are still looking for a solution you can add define( 'WDEV_USE_SESSION', false ); to the wp-config.php

    Let us know if you encounter any other issues :).

    Thread Starter BigAndini

    (@fr00d)

    Hi,

    thanks for your answer. This setting solves the use of session within thelib class of wpmu-lib which is used by custom sidebars.

    However, there is another session key used called cs-explain in inc/class-custom-sidebars-explain.php. The session for that is started in line 71 if there is no session_id. I was not able to find a switch to turn that off.

    I don’t know what exactly is explained here. From the code it looks like custom sidebars explains here how sidebars are replaced by the plugin. For productive system I think this is not needed. Correct me if I’m wrong.

    Cheers
    Andi

    Hello @fr00d,

    Hope you’re doing well!

    This session is not used on every request, but mostly on the admin side and it should be detecting if a session exists for the code that is located in the same file at the 170 line. Some notes about this code:

    Returns true if the “explain mode” is enabled. Explain mode will display additional information in the front-end of the website on why which sidebar/widget is displayed. This is a per-user option (stored in current session)

    I’ve asked a developer for feedback if removing this code will be an appropriate solution.

    Kind regards,
    Nastia

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

The topic ‘Use Custome Sidebars without sessions’ is closed to new replies.