Click to See Complete Forum and Search --> : session passing in subdirectories


jeny
09-27-2006, 10:31 PM
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????

NogDog
09-27-2006, 10:59 PM
Do both pages begin with a session_start() (and any related session_*() functions)?

jeny
09-28-2006, 03:53 AM
yes both the pages starts with session_start() function..

NogDog
09-28-2006, 05:41 AM
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. :) )