javiroquai2561
New Member
- Messages
- 10
- Reaction score
- 0
- Points
- 0
Hello.
I'm developing a little web app with a login system, and uses some $_SESSION variables. I tested my code using XAMPP on my PC, and it works fine.
But when I upload the files on x10hosting, the pages started to behave randomly respect session variables (sometimes you login, then you appear not logged, but if refresh or go to another 'not-logged' page, you are logged in again...)
I've tried everything:
- .htaccess file with SetEnv session.use_cookies='0'; and SetEnv session.use_cookies='1';
- using the following in my php code:
ini_set('register_globals', 0); and ini_set('register_globals', 1);
ini_set('session.use_cookies', '0'); and ini_set('session.use_cookies', '1');
header("Cache-Control: no-cache");
session_set_cookie_params(10);... and 30 and 60 and 3600 and 0...
But the strange behaviour continues to happen...
I don't know what to do, i'm going crazy with this stuff.
What do you think could be causing that behaviour? Why it works on my PC?
A related question: How could I check the PHPInfo and/or Apache server values? I don't find links to check that stuff on cPanel...
I'm developing a little web app with a login system, and uses some $_SESSION variables. I tested my code using XAMPP on my PC, and it works fine.
But when I upload the files on x10hosting, the pages started to behave randomly respect session variables (sometimes you login, then you appear not logged, but if refresh or go to another 'not-logged' page, you are logged in again...)
I've tried everything:
- .htaccess file with SetEnv session.use_cookies='0'; and SetEnv session.use_cookies='1';
- using the following in my php code:
ini_set('register_globals', 0); and ini_set('register_globals', 1);
ini_set('session.use_cookies', '0'); and ini_set('session.use_cookies', '1');
header("Cache-Control: no-cache");
session_set_cookie_params(10);... and 30 and 60 and 3600 and 0...
But the strange behaviour continues to happen...
I don't know what to do, i'm going crazy with this stuff.
What do you think could be causing that behaviour? Why it works on my PC?
A related question: How could I check the PHPInfo and/or Apache server values? I don't find links to check that stuff on cPanel...