The code you pasted is protected, so there is no issue with that.
There is no session code added in the private area, but I'd likely need to test on your live site, so maybe if you give me a URL with steps to reproduce and FTP access I can help debug that one for you.