Click to See Complete Forum and Search --> : PHP Redirect problem in the php


goldenswarna
May 19th, 2011, 04:29 AM
Hi

i have three folders ,

example: first folder,second folder, third folder

now i m using third folder file , i want to access the second folder function so i included that function then redirect to the first folder file , at that time i could not access the session variable.

it show as null value. any one help me to solve this problem.

if we redirect to the any folder which reside out the root means ,the session will expires ?

Thanks
sona

PeejAvery
May 19th, 2011, 10:18 AM
Without seeing any code, there's no way we could know what you're trying to explain.

Please remember to use PHP tags.

Anoir
May 21st, 2011, 12:40 PM
Please post your source code or provide more info in order to get ur point :)

<?php
$echo="Your Folder Path Here"
?>
<html><head>
<meta HTTP-Equiv="refresh" content="0; URL=<?echo $echo; ?>">
<script type="text/javascript">
echo = "<?echo $echo; ?>"
self.location.replace(echo);
window.location = echo;
</script>
</head>

PeejAvery
May 21st, 2011, 12:59 PM
Anoir, why would you use PHP to echo to the client-side for a redirect when a server-side redirect is faster? That makes no sense.

Anoir
May 21st, 2011, 01:07 PM
Well it is just an example and safe :)