Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #545683

    so i came across the forums and learned their was this concept which we are now trying to use to get rid of php sessions from being used, as they cause our caching system to bypass as a result.

    add_theme_support(‘avia_no_session_support’);

    it seems to work, but i have no idea what loss of functionality we may see as a result of turning off session support.

    Can you inform?

    Thanks,
    Cory

    #546028

    Hi ckwiat!

    Breadcrumbs will have issues. Sessions are for saving data for each user when they visit your site for that “session”. We use that for the breadcrumbs to know which page you were on before, etc etc.

    It’s a problem with the server so I would contact your hosting provider. See here for more info, https://kriesi.at/support/topic/warning-session_start-function-session-start-help-asap-please/.

    Cheers!
    Elliott

    • This reply was modified 8 years, 11 months ago by Elliott.
    #546061

    the issue is that when a phpsesid is created it triggers our caching to be bypassed. To preserve breadcrumbs wouldn’t be enough benefit to essentially have caching disabled on the site.

    Do you have any other solutions? I guess I’m not familiar enough with the way you are setting the breadcrumbs to know why they would be different per user. I suppose you are suggesting that the breadcrumb structure is dynamic based on the users’s path – but my preference would be to have static breadcrumbs anyway.

    So I guess I’m asking, does the below avoid us from setting sessions?
    add_theme_support(‘avia_no_session_support’);

    And then you mentioned breadcrumbs having issues with this disabled, what sort of issues?

    Many thanks for the reply.

    Cory

    #546087

    Hi!

    1. No, not that I know of. You could just leave it off if you wish.

    2. Yes.

    3. For example when you use the portfolio grid shortcode and click on one of the portfolio posts, they will not have the parent page displayed because they have no idea where you used the portfolio grid shortcode at.

    Cheers!
    Elliott

    #546103

    Many thanks for the replies.

    #546138

    Hey!

    Please do let us know if we can do anything else for you, we will be happy yo assist.

    Regards,
    Basilis

    #546177

    one more thing

    i have tried to add this to an older version of the enfold theme – and for whatever reason i’m not able to get the phpsessid to stop creating a session. We are able to do this with no issue on the latest version. is there a version at which this would start to function?

    add_theme_support(‘avia_no_session_support’);

    #547194

    Hey!

    Yes, most likely. I’m not sure which version it is though. It would be best to use the latest version of the theme anyway. Make sure to update.

    Cheers!
    Elliott

    #871578

    Hi

    As your are using cookies PHP sessions, headers are automatically set by PHP like I described (https://andidittrich.de/2015/09/php-worry-about-some-magical-added-cache-control-header.html)

    The issue is those headers prevent browser caching! and if peole want to use some cache systems like, LiteSpeed Cache, Varnish, etc. those headers ruined the Leverage browser caching…

    Using PHP session is the old way to do what you want but worst: there are multiple security vulnerabilities centering around PHP Sessions… :
    http://phpsec.org/projects/guide/5.html
    http://phpsec.org/projects/guide/4.html

    So what… ? The correct method is to use the database to store session data

    Usefull informations:
    https://pressjitsu.com/blog/wordpress-sessions-performance/
    https://wordpress.org/support/topic/php-session-disables-cache/ (another WordPress plugin that was using PHP session
    https://wpengine.com/support/cookies-and-php-sessions/

    So come on Enfold guys :) Don’t use anymore this old PHP stuff, let’s the breadcrumbs works using something else to store users stuff

    Thanks

    #872132

    Hi,


    @pako69

    Thanks for using our theme and pointing this out.

    I will forward your suggestions to Kriesi.

    Best regards,
    Günter

    #971312

    Hi. How is the process here. 06/2018 we use the session cookie again.

    #971994

    Hi,

    The theme is still using PHP sessions for the portfolio breadcrumb. You can still use the following filter to disable it.

    add_theme_support('avia_no_session_support');
    

    The portfolio breadcrumb on single pages will not work as expected though.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.