PHP Session issue with different directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bharat383
    New Member
    • Aug 2011
    • 93

    PHP Session issue with different directory

    PHP Session issue with different directory

    Application structure :

    root_directory :
    - login.php
    - register.php

    root/member
    - memberprofile.p hp
    - test2.php

    root/manager
    - managerprofile. php
    - test3.php
    - test4.php

    When any member/manager will login from root/login.php (the session created) and redirect to particular directory.
    if member login, he will be redirect to root/member/memberprofile.p hp

    When i was in my development mode with xampp, it was working fine but when the applicatoin has been uploaded to live windows server. The session issue has been occurred.

    When the member/manager will login then on the next page (root/member/memberprofile.p hp), the session value has not been read and the script redirect him to login page as the session is not set.

    The main issue is, session values are not accessible in other directory. I have tried to store the session files in new common directory (root/temp) but still facing the same issue.
Working...