No, it is not illegal as it remains for a very specific period such as ten minutes etc. It gets deleted after that so it is not illegal.