0

I have created a web app for my customer and its working perfectly on my domain / server. But when I use this app from his domain through Iframe I cannot log in properly because I have this code in every page

session_start();

 if(!$_SESSION['u_name']){

 header('location:login.php?logout=Sei disconnesso');

 }

So from his domain session part is not working properly. It redirects me always on the login page but when I use this from my domain it works perfectly.

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Sandro
  • 59
  • 1
  • 1
  • 7
  • Possible duplicate of [Preserving session variables across different domains](https://stackoverflow.com/questions/14611545/preserving-session-variables-across-different-domains) – rndus2r Aug 19 '17 at 10:25

1 Answers1

0

Yep, the best way of doing this is storing sessions in a database.

Weyooo
  • 26
  • 1
  • 7