in Education by
I've following two path path1- test/hello/hello.php path2- test/hello1/hello1.php //notice the one in the directory after test/ hello.php <?php session_start(); $_SESSION['name1'] = 'abcd1'; ?> other file is hello1.php <?php session_start(); echo $_SESSION['name1']; ?> In one computer I am able to get the value in hello1.php In another computer I am not getting value in hello.php In both the PC I had clear storage, ran Hello.php for session to set. Hello1 has value in One pc , in another I don't have value. What might be the issue? Also, what is the correct work, In general will I get session value Outside test folder OR everywhere inside test folder or only in the parent directory of the file where session was created. Please don't forget the original issue. Also one comment I don't know if its realated, I have 2 xampp in 2 drive in the pc where hello1.php gave the value. does'nt it affect anything? In short I want concept of Session WRT to directories/ also about framework, does framework make restrictions to accessing variable outside their core project folder. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You told us nothing about how your PHP is configured, so there is a very extensive list of things which could be going wrong - far too many to list here. Make sure your error reporting/logging is working correctly (and that no errors or warnings are being produced). Have a look at the path, name and value of the cookies being emitted by the server for both pages using firebug or developer tools.

Related questions

0 votes
    I've following two path path1- test/hello/hello.php path2- test/hello1/hello1.php //notice the one ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    Wordpress site. I want jquery or php, or any easy solution that will grab div from div id=content ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    After I click in the menu navigation (for exemple href='home') when i am in the view .../public ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I want to update order status to complete using webapi here is my testing code : $data = array ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    In ASPNET, I grew to love the Application and Cache stores. They're awesome. For the uninitiated, you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    In ASPNET, I grew to love the Application and Cache stores. They're awesome. For the uninitiated, you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    In ASPNET, I grew to love the Application and Cache stores. They're awesome. For the uninitiated, you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    In ASPNET, I grew to love the Application and Cache stores. They're awesome. For the uninitiated, you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    How to get array from form validation config file in controller? application/config/form_validation.php I have ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    How to get array from form validation config file in controller? application/config/form_validation.php I have ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    If commands are stored in an external file, say commands.R in the working directory work, they may be executed ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In a multi user multi-threaded environment, thread safety is important as one may erroneously gain access to another ... (1)OS commands (2)Race conditions (3)Session Integrity...
asked May 17, 2021 in Technology by JackTerrance
0 votes
    Which option is true about session scope? (a) Objects are accessible only from the page in which they are created (b ... & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which option is true about session scope? (a) Objects are accessible only from the page in which they ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
+1 vote
    What is global-session scope in Spring? A - This scopes a bean definition to an HTTP Application/ Global session. B ... . D - This scopes the bean definition to HTTP Session....
asked Oct 14, 2020 in Technology by JackTerrance
...