Unique session issue with Access-Control-Allow-Origin

When I am trying to access data using cross Domain request (from multiple domains).

I have added the following codes in php file at back end.

header("Access-Control-Allow-Origin: *");

Every time a new session is generated for each request, because of which large number of session files pile up on server. How to manage this in PHP.

How I can stop to create new session on each request? OR How can I clean the session on each request so that session files will not pile up on server?

-------------Problems Reply------------

session_start() and session_destroy() works for cleaning session files . :)

Category:php Views:6 Time:2018-08-10

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.153 (s). 11 q(s)