dcsimg
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
    21,443
    Do both pages begin with a session_start() (and any related session_*() functions)?
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  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
    21,443
    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. )
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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