gevensen Posted August 30, 2010 Share Posted August 30, 2010 I seem to be seeing a problem I havent noticed before when I use header for a redirect the session data passes to the new page when I use href it seems as though even when I do a session_start() on the new page the session data doesnt pass Is this normal or is there a setup issue on my server (bluehost) everything works fine on wamp but when i upload to implement it no good I am using this to generate PDF reports using fpdf, I want it to open a new page instead of just redirecting Is it that it is unable to pass the data to a new page on a server?? Quote Link to comment https://forums.phpfreaks.com/topic/212115-session-on-localhost-vs-webserver/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 30, 2010 Share Posted August 30, 2010 Any chance you are switching back and forth between URL's that have and don't have the www. on them and/or the URL's have different paths to the files in question? The session.cookie_domain and session.cookie_path settings affect if the session id cookie matches only the subdomain/hostname (www. or no www.) and path where it was set or matches all variations of the subdomain/hostname and path on your site. What does a phpinfo(); statement show for the session.cookie_domain and session.cookie_path settings? Quote Link to comment https://forums.phpfreaks.com/topic/212115-session-on-localhost-vs-webserver/#findComment-1105384 Share on other sites More sharing options...
gevensen Posted August 31, 2010 Author Share Posted August 31, 2010 I am calling a file in a different directory for example http://www.website/directory1/callingfile.php has a href in it that links to http://www.website/directory2/report.php Quote Link to comment https://forums.phpfreaks.com/topic/212115-session-on-localhost-vs-webserver/#findComment-1105467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.