methodlessman Posted April 23, 2009 Share Posted April 23, 2009 So I have been stupidly developing my site in only one browser (Google Chrome) assuming it would work the same in all major browsers(gimmie a break I'm new to this ). But, it doesn't. I have a login system that is supposed to remember the users name and ID# (both of which are stored in a MySQL DB). When they login their info is pulled from the DB and fed into a session array. In Chrome this works fine, but both IE and FF seem to destroy my session as soon as the user leaves the login page(which is done automatically after logging in succeeds). Every page of my site starts with an included file containing session_start(). Anyone ever had a similar problem? Quote Link to comment https://forums.phpfreaks.com/topic/155398-php-sessions/ Share on other sites More sharing options...
mrMarcus Posted April 23, 2009 Share Posted April 23, 2009 PHP is a server-side language, so it will execute the same in any web browser. however, there is the possibility that cookies are treated differently by various browsers .. somebody would need to confirm that though. drawing records from the database is not prejudiced to any one browser .. there has to something else going on. Quote Link to comment https://forums.phpfreaks.com/topic/155398-php-sessions/#findComment-817670 Share on other sites More sharing options...
premiso Posted April 23, 2009 Share Posted April 23, 2009 Browser should not matter, unless it is set to deny cookies. As session's use cookies. Check your browser settings. Quote Link to comment https://forums.phpfreaks.com/topic/155398-php-sessions/#findComment-817671 Share on other sites More sharing options...
methodlessman Posted April 23, 2009 Author Share Posted April 23, 2009 Oh man duh, I can't believe I let that little server side thing slip my mind. Thanks for the reminder! Quote Link to comment https://forums.phpfreaks.com/topic/155398-php-sessions/#findComment-817673 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.