Read about termination of work in Sweden
In the following you can read about swedish rules about special termination conditions, the length of the notice period, and appeal against termination.
If you live in Denmark and stop working in Sweden, you return to the Danish Social Security System. Read more here.
Here you can read about what you should keep in mind when returning to the Danish system.