I have windows running on Windows Hosting (IIS) w / Godaddy. Wordpress is running out of its subdirectory "/ wordpress" if i set a php session value eg $ _SESSION ["test1"] = "Value is set by root: /"; From the root in PHP, I can see the value of the session properly as long as my PHP code is not going out of the root. If I try to value this session from the / session folder, then I have not found it.
The opposite is outlined. If I have set a session value under WordPress and its subdirectory, then I can see the session and its values as much as I work in the / WordPress folder. If I try and access session sessions set within session / WordPress, then it is not accessible.
I have checked the session ID and they are the same from both the root and the / WordPress folder. I have examined both of them with cookies and they have one way & amp; Domain.
I have a disadvantage, because setting the PHP session values from the root works to the / WordPress folder will not be global. Any help would be appreciated. Thank you.
/set_session.php
& lt ;? Php session_start (); $ _SESSION ["test1"] = "Value is set by root: /"; ? & Gt;
/wordpress/set_session.php
& lt ;? Php session_start (); $ _SESSION ["test2"] = "Set Price From WordPress Subdirectory: / WordPress"; ? & Gt;
view_session.php (I run it from root and / or WordPress)
PHP list all session variables & lt; / h3 & gt;"; The foreign currency ($ _SESSION $ as the key = & gt; $ val) the echo $ key. "". $ Val "& Lt; br / & gt;"; ? & Gt;
If I run a scene session script from /view_session.php, then I see only one value for "test1" because it was set to /set_session.php.
If I run a visible session script from /wordpress/view_session.php, I see only the value of "test2" because it was set from / keywordpress / set_session.php.
First of all, I should say that GoDaddy support is useless. They accepted this approach because there was no official "error" that they could not help me, and they did not mistake their sample regardless of sample code.
When I installed WordPress then I used them to set up my WP for Plesk install option. It was alright in WordPress that it was installed in its sub-directory, although their install processes have / The WordPress folder has created its virtual directory that runs all the contents inside it under its own app pool / thread. This caused the various sessions between the / WordPress directory and other directories within the site.
No comments:
Post a Comment