I am worried, I just found that my PHP sessions are not working in Chrome. Actually, I am working on a Bigcommerce app development so I face the problem. It is working fine in Firefox, internet explores but not in Chrome.
            Asked
            
        
        
            Active
            
        
            Viewed 177 times
        
    0
            
            
        - 
                    [hope it will be helpful to you](https://stackoverflow.com/questions/8247842/session-data-lost-in-chrome-only/12614464#12614464) – Alive to die - Anant Feb 01 '21 at 05:30
- 
                    Aniket, since the issue is only occurring in your Chrome browser, have you tried clearing out the cache and cookies and giving it another try? – Heather Barr Feb 01 '21 at 16:02
- 
                    I have cleared Chrome browser history and cookies but not store data in the session. – Aniket kumar Feb 02 '21 at 05:51
1 Answers
1
            
            
        Use this code in the .htaccess file working fine
<ifmodule mod_headers.c>
Header always edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</ifmodule> 
 
    
    
        Aniket kumar
        
- 65
- 1
- 12