• Resolved lttl1234

    (@lttl1234)


    Hi Guys,

    i am programming a security plugin that hides completely wordpress and create html from rendered page for optimization.

    It works really really well with static content pages and blog.

    but when it’s dynamic like Woocommerce add_to_cart,
    i have a problem to link sessions since i have my own index that CURL woocommerce add_to_cart and every dynamic content. and i wonder how would i do it without revealing the wordpress folder/links…

    here is my FTP structure:
    FTP-ROOT
    -.htaccess
    -index.php

    -WPInstalledFolder(all usual wordpress files)
    —-.htaccess
    —-index.php
    —-wp-admin
    —-wp-content
    —-wp-includes
    —-etc etc

    so my main .htaccess make sure i use my main index.php as a proxy as needed to serve cached static html.

    Any help is welcomed!

    Thanks
    Luke.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @lttl1234

    Thanks for reaching out!

    I understand that you are programming a security plugin that hides WordPress completely and creates HTML from rendered pages for optimization, however, it is not working with static content pages and blogs, correct?

    This is a fairly complex development topic that would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

    Thread Starter lttl1234

    (@lttl1234)

    no, maybe i expressed myself wrong. it works for pages, posts, shop, products very well.

    but when it’s dynamic like a add_to_cart function, the session is getting created again because wordpress thinks it comes from the same entity (CURL from the index) and therefore nothing add ups to the client’s cart but i see that wordpress get it. i just need a way to assign a session correctly. i tried to pass, the session_id, _customer_id, cart_has but nothing worked yet.

    I know it’s probably not much to make it works.

    Is there a way to make sure in my index.php outside the wordpress folder that i can init the session and pass it everytime to wordpress when i interact with dynamic content that requires session?

    Thanks for helping
    Luke.

    Plugin Support Paulo P – a11n

    (@paulostp)

    Thanks for sharing the additional details @lttl1234. We will be leaving this topic open for a while longer to see if anyone from the community has any pointers to share with you.

    In the meantime, I would recommend also asking about this in the community groups linked above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CURL Session issue’ is closed to new replies.