www.webdeveloper.com
Results 1 to 4 of 4

Thread: session passing in subdirectories

  1. #1
    Join Date
    Dec 2005
    Posts
    105

    Question session passing in subdirectories

    hi all,

    i am having my project in "http://localhost/shop/index.php". index page sets session and redirect page to "http://localhost/shop/admin/index.php", when i do this, session has been set in the "main page(http://localhost/shop/index.php)", while redirecting to "http://localhost/admin/index" session is expired. how to over come this? can anybody please help me????

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,322
    Do both pages begin with a session_start() (and any related session_*() functions)?
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Dec 2005
    Posts
    105
    yes both the pages starts with session_start() function..

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,322
    We'll probably need to see some code, and need clarification as to what the exact symptoms are. There's no obvious reason I can see as to why a session should expire on the redirected page, but then maybe it just seems like it's expired but really there's some other logic error that is giving the observed effect. (Or not, I'm just trying to point out that I don't know. )
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles