Take the 2-minute tour ×  I want to get the previous session
data if the user removes all his cookies manually or in other
methods. Because i am storing some data in session and in my
global too, and I need to remove that data from my global for
every session destroyed.  share|improve this question  2 Answers
2  If a user removes all his cookies, then he is a user without
cookies, right? So how would you differentiate between this user
and any other user? This is a very difficult problem and I doubt
there is a reliable solution for it.  For example you might want
to identify a user by IP, but IP might change ( dynamic IP ).
You might want to identify user by creating WebSocket ( of
FlashSocket ) connection and keep it open, but this will work
only when user views your page ( and might be closed manually as
well ).  So forget about previous sessions. If you need to clean
session data, then create a CRON job or background thread ( or
background asynchronous job in case of Node.JS ), which will do
that periodica