How to set a cookie? Setcookie broken.
-
Hello, I have implemented a custom login, but it doesn’t work on any other page because wp_signon is not setting any cookies. Even when the signon function is called first, it still doesn’t work. The reason I am assuming is because wordpress does a ton of things before loading templates, or files. Does anyone know of a way to dynamically set cookies based on certain events? This is really frustrating. wp_signon is essentially a useless function if it doesn’t set cookies anywhere other than in wp-login.php. Whatever is happening on the command line when I enter in a slug as the URL is doing something special for wp-login and something different for templates. The signon and wp-login.php file sets cookies just fine. Does anyone have any idea how to solve this really difficult problem?
Thanks.
- The topic ‘How to set a cookie? Setcookie broken.’ is closed to new replies.