How to destroy a specific PHP session

前端 未结 3 998
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 14:53

I am looking for insights into how to destroy a specific session in PHP. Through a partner website a user logs into the main website using a token and obtains a full session

3条回答
  •  没有蜡笔的小新
    2021-01-06 15:14

    The database solution means that the session database needs to be shared between mainwebsite and the partner site, which frequently isn't the case etc. Maybe something along these trivial lines would suffice?

    
    

    mainwebsite/logout.php:

    
    

提交回复
热议问题