i have a problem with session . i got 'Access-Control-Allow-Origin' error in consol .i found that i should use "<?php header('Access-Control-Allow-Origin: *.from.example.com');" to solve the problem . the error got solved but i cant use session . it becomes astable