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:0 Time:2018-08-10

Related post

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

processed in 2.271 (s). 12 q(s)