Forum Moderators: coopster
If it is of any consequence, i am using php5, and rendering the content with Smarty.
Any help or direction would be greatly appreciated.
Many thanks
[edited by: eelixduppy at 7:39 pm (utc) on May 14, 2007]
[edit reason] no URLs, please. See TOS [/edit]
just a small and quick tip to make things clear, write on top of your page (that receives values from rewrite rule)
print_r($_SESSION);
it will show you whether you have the values in SESSION array or not on different pages.
Furthermore, when i click the link that points to to www.examplesite.com/file/ (which is a php file with the extension removed) the session is gone, but when i type the path into the address bar and hit enter it works fine!
This is nuts!
Has anyone every had this kind of stuff happen to them? Any ideas on what I can do to solve it?
Many thanks
[edited by: Frasnko at 7:30 pm (utc) on May 14, 2007]
I transformed the URLs as such:
[....com...]
[....com...]
I was reading the session variables in several ways but the I used the following to display everything in the Session
echo "<pre>";print_r($_SESSION);echo"</pre>";
What i don't get is that I could visit the homepage, log in, and everything is fine. Then i could visit an old URL (...com/image.php?cat=fishing) and maintain the session, but if i clicked on a link to the mod re-written URLs, the page would display fine, but the session would be gone! Re-visiting the index page and everything is still there.
This is using PHP5. I have a class that wraps the session handling functions and it is included, and defined in an include (that all files have). However the instantiation of the class is only performed on login (when the form is validated).
I know for a fact that this method worked fine since i had tested it all last week (until Friday, when i implemented Mod-Rewrite).
Many thanks to all who read this and offer any advice.